not stop filling struct after env param not found

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-12-13 19:29:29 +03:00
parent ce67d2f390
commit a90e073b86

2
env.go
View File

@ -207,7 +207,7 @@ func (c *envConfig) fillValues(ctx context.Context, valueOf reflect.Value) error
}
val, ok := os.LookupEnv(tag)
if !ok {
return nil
continue
}
if err := c.fillValue(ctx, value, val); err != nil {