refactor global config into subpackage

This commit is contained in:
Bradley Cicenas
2017-02-07 03:33:09 +00:00
parent d5d00b730b
commit 85cd6864ba
6 changed files with 24 additions and 18 deletions

View File

@@ -1,11 +1,12 @@
package main
import (
"github.com/bcicen/ctop/config"
"github.com/bcicen/ctop/logging"
ui "github.com/gizak/termui"
)
var log = logging.New(GlobalConfig["loggingEnabled"])
var log = logging.New(config.Global["loggingEnabled"])
func main() {
if err := ui.Init(); err != nil {