# Functions
Apply ...
Debug ...
Get returns an interface.
GetBool returns the value associated with the key as a boolean with default defaultConfiguration.
GetDuration returns the value associated with the key as a duration with default defaultConfiguration.
GetFloat64 returns the value associated with the key as a float64 with default defaultConfiguration.
GetInt returns the value associated with the key as an integer with default defaultConfiguration.
GetInt64 returns the value associated with the key as an integer with default defaultConfiguration.
GetOptionSquash returns Squash config of default container.
GetOptionTagName returns optionTag config of default container.
GetOptionWeaklyTypedInput returns WeaklyTypedInput config of default container.
GetSlice returns the value associated with the key as a slice of strings with default defaultConfiguration.
GetString returns the value associated with the key as a string with default defaultConfiguration.
GetStringMap returns the value associated with the key as a map of interfaces with default defaultConfiguration.
GetStringMapString returns the value associated with the key as a map of strings with default defaultConfiguration.
GetStringMapStringSlice returns the value associated with the key as a map to a slice of strings with default defaultConfiguration.
GetStringSlice returns the value associated with the key as a slice of strings with default defaultConfiguration.
GetTime returns the value associated with the key as time with default defaultConfiguration.
LoadFromDataSource load configuration from data source if data source supports dynamic config, a monitor goroutinue would be.
LoadFromReader loads configuration from provided provider with default defaultConfiguration.
New constructs a new Configuration with provider.
OnChange 注册change回调函数.
RawConfig 原始配置.
Reset resets all to default settings.
Set set config value for key.
Sub return sub-configuration of defaultConfiguration.
Traverse ...
UnmarshalKey takes a single key and unmarshal it into a Struct with default defaultConfiguration.
UnmarshalWithExpect unmarshal key, returns expect if failed.
WithSquash sets if allow squash tags in embedded struct.
WithTagName sets tagName when unmarshal raw config to struct.
WithWeaklyTypedInput sets if allow weaklyTypedInput.
# Constants
PackageName defines package name.
# Variables
ConfigTypeJSON ...
ConfigTypeToml ...
ConfigTypeYaml ...
ErrInvalidKey ...
# Interfaces
DataSource ...
# Type aliases
ConfigType 配置类型.
Option is an optional argument to Container.
Unmarshaller ...