feat: 支持指定Config位置

This commit is contained in:
Mmx
2021-09-20 09:29:05 +08:00
parent bb45aa9971
commit 48a9785af1
4 changed files with 17 additions and 6 deletions

12
global/flags.go Normal file
View File

@@ -0,0 +1,12 @@
package global
import "flag"
var Flags struct {
Path string
}
func initFlags() {
flag.StringVar(&Flags.Path, "config", "", "config path")
flag.Parse()
}