Documentation
¶
Index ¶
Constants ¶
View Source
const ( ViperTag = "viper" CobraTag = "cobra" EnvTag = "env" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Autobinder ¶ added in v0.0.2
type Autobinder struct {
ConfigObject interface{}
Viper *viper.Viper
UseNesting bool
EnvPrefix string // Viper prefix for environment variables, viper does not expose this, and because we construct the ENV variables, the prefix isn't set by Viper.
SetDefaults bool // Set default values for Viper keys that are not set
Casters map[string]Caster // Custom casters
}
func (*Autobinder) Cast ¶ added in v0.0.8
func (b *Autobinder) Cast(key string, caster Caster)
Click to show internal directories.
Click to hide internal directories.