load nothing
continuous-integration/drone/tag Build is passing Details

master v0.1.2
Evan 2021-11-27 22:19:30 +08:00
parent 3ca2fe861f
commit 0910565e20
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ func main() {
k := kconfig.New() k := kconfig.New()
k.AppName = flagAppName k.AppName = flagAppName
if flagFile != "" { if flagFile != "" {
k.Load = func() []byte { return nil }
go func() { go func() {
fi, err := os.Stat(flagFile) fi, err := os.Stat(flagFile)
if err != nil { if err != nil {