From 62acddda5e8993692217ffd716d7b3f7112502e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 11 Mar 2023 14:38:19 +0100 Subject: [PATCH] v0.0.91 --- confext/confParser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {