Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BoRuDar committed May 21, 2022
1 parent 86fcefb commit 22234e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (c *Configurator) applyProviders(field reflect.StructField, v reflect.Value
c.onErrorFn(fmt.Errorf("configurator: field [%s] with tags [%v] cannot be set", field.Name, field.Tag))
}

// FromEnvAndDefault is a shortcut for `New(cfg, NewEnvProvider(), NewDefaultProvider()).InitValues()`.
func FromEnvAndDefault(cfg any) error {
return New(cfg, NewEnvProvider(), NewDefaultProvider()).InitValues()
}

0 comments on commit 22234e6

Please sign in to comment.