Add Debug option to the config

This commit is contained in:
2024-09-24 22:23:04 +02:00
parent 5888a7821b
commit a0cc3c3e0a
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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
}
+1
View File
@@ -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) {