export config struct fields, add convenience methods for value fetching

This commit is contained in:
Bradley Cicenas
2017-02-16 04:06:05 +00:00
parent 5bbce31601
commit a1f860a020
8 changed files with 67 additions and 65 deletions

View File

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