Created
July 13, 2020 18:34
-
-
Save aavrug/423de0d90ae05a1014c1c2caa97ef83c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
cfg "./config" | |
) | |
var configfile = flag.String("config", "config.json", "config file path") | |
func main() { | |
if err := cfg.LoadConfig(*configfile); err != nil { | |
log.Print("load condig file failed : ", err.Error()) | |
return | |
} | |
log.Print("start init default server", cfg.GetConfig()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment