Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface { // Init the config Init(opts ...Option) error // Options in the config Options() Options // Stop the config loader/watcher Close() error // Load config sources Load(opts ...Option) error // Force a source changeset sync Sync() error Get(key string) (string, bool) //获取参数, 后续可返回values Walk(f func(key string, value string) bool) //遍历参数,并执行操作处理函数 }
type Option ¶
type Option func(*Options)
func WithConfigFile ¶
func WithConfigName ¶
func WithConfigPath ¶
func WithConfigType ¶
func WithDefConfigData ¶
type VConfig ¶
type VConfig struct {
// contains filtered or unexported fields
}
func NewVConfig ¶
func (*VConfig) ReadConfigFile ¶
func (*VConfig) UnmarshalKey ¶
func (*VConfig) WriteConfigAs ¶
Click to show internal directories.
Click to hide internal directories.