package
0.1.5
Repository: https://github.com/coder2m/g-saber.git
Documentation: pkg.go.dev

# 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.
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 xcfg, a xmonitor goroutinue would be.
Load loads configuration from provided provider with default defaultConfiguration.
New constructs a new Configuration with provider.
OnChange 注册change回调函数.
Reset resets all to default settings.
Set set xcfg value for key.
设置Tag.
Traverse ...
UnmarshalKey takes a single key and unmarshal it into a Struct with default defaultConfiguration.
UnmarshalWithExpect unmarshal key, returns expect if failed.

# Variables

ErrInvalidKey ...

# Structs

Configuration provides configuration for application.
GetOption ...

# Interfaces

DataSource ...

# Type aliases

GetOption ...
Unmarshaler ...