allow set config file path

This commit is contained in:
wjc 2020-12-26 13:11:55 +08:00
parent 601994a372
commit ddddb4bf66

View File

@ -39,7 +39,7 @@ func main() {
configPath := flag.String("config", "./config.json", "path to config file") configPath := flag.String("config", "./config.json", "path to config file")
flag.Parse() flag.Parse()
fmt.Println(*configPath) fmt.Println("config file path: ", *configPath)
configJson, err := ioutil.ReadFile(*configPath) configJson, err := ioutil.ReadFile(*configPath)
if err != nil { if err != nil {