Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigType ¶ added in v1.4.8
type ConfigType string
const ( ConfigTypeJson ConfigType = "json" ConfigTypeToml ConfigType = "toml" ConfigTypeYaml ConfigType = "yaml" ConfigTypeYml ConfigType = "yml" ConfigTypeProperties ConfigType = "properties" ConfigTypeProps ConfigType = "props" ConfigTypeProp ConfigType = "prop" ConfigTypeHcl ConfigType = "hcl" ConfigTypeDotenv ConfigType = "dotenv" ConfigTypeEnv ConfigType = "env" ConfigTypeIni ConfigType = "ini" )
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func NewWithFilePath ¶ added in v1.4.8
func NewWithFilePath(path string) *Configurator
func NewWithReader ¶ added in v1.4.8
func NewWithReader(reader io.Reader) *Configurator
func (*Configurator) Kernel ¶
func (c *Configurator) Kernel() *viper.Viper
func (*Configurator) Load ¶ added in v1.4.8
func (c *Configurator) Load(config interface{}) error
func (*Configurator) SetConfigType ¶
func (c *Configurator) SetConfigType(configType ConfigType) *Configurator
func (*Configurator) SetTagName ¶
func (c *Configurator) SetTagName(tagName string) *Configurator
Click to show internal directories.
Click to hide internal directories.