Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auto ¶
func Auto() configOption
Configure a struct using any command line flags, environment variables, variables in .env and finally, values set using default tags
func Env ¶
func Env(paths ...string) configOption
Configure a struct using values defined in the environment and .env files
Types ¶
type Configurer ¶
type Configurer struct {
// contains filtered or unexported fields
}
func (*Configurer) Parse ¶
func (c *Configurer) Parse(val interface{}) (err error)
Actually update the struct given the values provided
Click to show internal directories.
Click to hide internal directories.