allow set config file path
This commit is contained in:
parent
601994a372
commit
ddddb4bf66
@ -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 {
|
||||||
|
Reference in New Issue
Block a user