diff --git a/util/config.go b/util/config.go index 8d85822..a701582 100644 --- a/util/config.go +++ b/util/config.go @@ -4,6 +4,7 @@ import ( "encoding/json" "io/fs" "path/filepath" + "strings" "io" "os" @@ -13,7 +14,7 @@ func ReadConfigs(cfgPath string) ([]*Config, error) { var configs []*Config err := filepath.Walk(cfgPath, func(path string, info fs.FileInfo, err error) error { - if info.IsDir() { + if info.IsDir() || strings.HasSuffix(info.Name(), ".example.json") { return nil }