diff --git a/main.go b/main.go new file mode 100644 index 0000000..2813f34 --- /dev/null +++ b/main.go @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + + . "git.kevinfries.com/kfries63/config" + . "git.kevinfries.com/kfries63/logger" +} + +func init() { + SetAppName("Hello World", "hw") + SetAppVersion("0.1.0") + + DefineConfigItem("Debug", "D", false, "Trun on debug mode") + SetLogger(Debug) +} + +func DebugHandler() { + if Config.GetBool("Debug") { + SetLogger(Debug) + } +} + +func main*() { + GetConfigs() + DebugHandler() + + fmt.Println("Hello World!!") +} +