aboutsummaryrefslogtreecommitdiff
path: root/telegabber.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-25 21:12:38 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-25 21:12:38 +0300
commit695c9fc35325d3bec3ec81bdce59f780acd74e8d (patch)
tree91754643ae5f9cdde3d6e04af5239a3a7ccababa /telegabber.go
parent72c9dac62cb6282841d22d877852bcee26bff9dd (diff)
Add config validation
Diffstat (limited to 'telegabber.go')
-rw-r--r--telegabber.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/telegabber.go b/telegabber.go
index 6c17c91..d924822 100644
--- a/telegabber.go
+++ b/telegabber.go
@@ -8,9 +8,10 @@ import (
)
const CONFIG_PATH string = "config.yml"
+const SCHEMA_PATH string = "./config_schema.json"
func main() {
- config, err := config.ReadConfig(CONFIG_PATH)
+ config, err := config.ReadConfig(CONFIG_PATH, SCHEMA_PATH)
if err != nil {
log.Fatal(err)
}