From 695c9fc35325d3bec3ec81bdce59f780acd74e8d Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Fri, 25 Oct 2019 21:12:38 +0300 Subject: Add config validation --- telegabber.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'telegabber.go') 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) } -- cgit v1.2.3