diff --git a/main.go b/main.go index ff90308..f29dd9c 100644 --- a/main.go +++ b/main.go @@ -21,23 +21,23 @@ import ( type Config struct { Telegram struct { - URL string - Token string - } + URL string `json:"url"` + Token string `json:"token"` + } `json:"telegram"` SQL struct { - Driver string - Type string - Address string - Username string - Password string - Database string - } + Driver string `json:"driver"` + Type string `json:"type"` + Address string `json:"address"` + Username string `json:"username"` + Password string `json:"password"` + Database string `json:"database"` + } `json:"sql"` Rabbit struct { User string Password string Host string Path string - } + } `json:"rabbit"` Bot struct { Admin int64 Guildname string @@ -45,7 +45,7 @@ type Config struct { Mainchat int64 Depositchat int64 Reportchat int64 - } + } `json:"bot"` } var (