diff --git a/confext/confParser.go b/confext/confParser.go index 278bf62..c39fd5c 100644 --- a/confext/confParser.go +++ b/confext/confParser.go @@ -41,12 +41,12 @@ func processEnvOverrides(rval reflect.Value, delim string, prefix string) error continue } - if rvfield.Kind() == reflect.Struct { + envkey, found := rsfield.Tag.Lookup("env") + if !found || envkey == "-" { + continue + } - envkey, found := rsfield.Tag.Lookup("env") - if !found || envkey == "-" { - continue - } + if rvfield.Kind() == reflect.Struct && rvfield.Type() != reflect.TypeOf(time.UnixMilli(0)) { subPrefix := prefix if envkey != "" { @@ -57,10 +57,7 @@ func processEnvOverrides(rval reflect.Value, delim string, prefix string) error if err != nil { return err } - } - envkey := rsfield.Tag.Get("env") - if envkey == "" || envkey == "-" { continue } diff --git a/goextVersion.go b/goextVersion.go index ea57cd4..7a8e41c 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.286" +const GoextVersion = "0.0.287" -const GoextVersionTimestamp = "2023-10-11T11:27:18+0200" +const GoextVersionTimestamp = "2023-10-12T10:02:42+0200"