2024-08-17 03:32:22 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
. "git.kevinfries.com/kfries63/config"
|
|
|
|
. "git.kevinfries.com/kfries63/logger"
|
2024-08-28 18:59:17 +00:00
|
|
|
)
|
2024-08-17 03:32:22 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-28 19:06:41 +00:00
|
|
|
func main() {
|
2024-08-17 03:32:22 +00:00
|
|
|
GetConfigs()
|
|
|
|
DebugHandler()
|
|
|
|
|
|
|
|
fmt.Println("Hello World!!")
|
|
|
|
}
|
|
|
|
|