diff --git a/confext/confParser.go b/confext/confParser.go index 4e94d81..86250e4 100644 --- a/confext/confParser.go +++ b/confext/confParser.go @@ -22,10 +22,10 @@ import ( // // sub-structs are recursively parsed (if they have an env tag) and the env-variable keys are delimited by the delim parameter // sub-structs with `env:""` are also parsed, but the delimited is skipped (they are handled as if they were one level higher) -func ApplyEnvOverrides[T any](c *T, delim string) error { +func ApplyEnvOverrides[T any](prefix string, c *T, delim string) error { rval := reflect.ValueOf(c).Elem() - return processEnvOverrides(rval, delim, "") + return processEnvOverrides(rval, delim, prefix) } func processEnvOverrides(rval reflect.Value, delim string, prefix string) error {