refactor config, add Switch and Param struct + config labels

This commit is contained in:
Bradley Cicenas
2017-02-16 03:02:13 +00:00
parent 5f13563b6f
commit 90f6ce3962
6 changed files with 106 additions and 44 deletions

View File

@@ -10,7 +10,7 @@ var log *logging.CTopLogger
func main() {
log = logging.Init()
if config.GetToggle("loggingEnabled") {
if config.GetSwitch("loggingEnabled") {
log.StartServer()
}
if err := ui.Init(); err != nil {