Categorygithub.com/bitxx/load-config
modulepackage
1.6.0
Repository: https://github.com/bitxx/load-config.git
Documentation: pkg.go.dev

# README

load-config

使用方式可查看test-conf目录中的conf_test.go

# Packages

Package encoder handles source encoding formats.
package loader manages loading from multiple sources.
Package reader parses change sets and provides config values.
Package source is the interface for sources.
No description provided by the author

# Functions

Bytes Return config as raw json.
Get a value from the config.
Load config sources.
LoadFile is short hand for creating a file source and loading it.
Map Return config as a map.
NewConfig returns new config.
Scan values to a go type.
Sync Force a source changeset sync.
Watch a value for changes.
WithEntity sets the config Entity.
WithLoader sets the loader for manager config.
WithReader sets the config reader.
WithSource appends a source to list of sources.

# Variables

DefaultConfig Default Config Manager.

# Structs

Options 配置的参数.

# Interfaces

Config is an interface abstraction for dynamic configuration.
Entity 配置实体.
Watcher is the config watcher.

# Type aliases

Option 调用类型.