use yaml, and detect go.mod in current dir

This commit is contained in:
kevin
2020-08-27 11:44:35 +08:00
parent 229544f3ca
commit 1c24e71568
4 changed files with 33 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ import (
{{.importPackages}}
)
var configFile = flag.String("f", "etc/{{.serviceName}}.json", "the config file")
var configFile = flag.String("f", "etc/{{.serviceName}}.yaml", "the config file")
func main() {
flag.Parse()