Add Debug option to the config
This commit is contained in:
+2
-1
@@ -5,5 +5,6 @@
|
||||
"nickname": "Some_nick",
|
||||
"channels": ["#channel", "#channel2"],
|
||||
"geoip_database": "/app/geolite2-city.mmdb",
|
||||
"geoip_asn": "/app/geolite2-asn.mmdb"
|
||||
"geoip_asn": "/app/geolite2-asn.mmdb",
|
||||
"debug": false
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ type Config struct {
|
||||
Channels []string `json:"channels"`
|
||||
GeoIPDatabase string `json:"geoip_database"`
|
||||
GeoIPASN string `json:"geoip_asn"`
|
||||
Debug bool `json:"debug"`
|
||||
}
|
||||
|
||||
func LoadConfig(file string) (Config, error) {
|
||||
|
||||
Reference in New Issue
Block a user