Documentation ¶
Index ¶
- func DebugWriter(writer io.Writer) *debugWriter
- func DefaultSource() *defaultSource
- func EnvSource(prefix string) *envSource
- func IterConfig(cfg interface{}, editFunc EditStructFieldFunc)
- func LoadSources(cfg interface{}, sources ...Source)
- func LocalMap(local map[string]interface{}) *localMap
- func YamlFileSource(filepath string) *yamlSource
- func YamlFileWriter(filepath string) *yamlWriter
- func YamlMustFileSource(filepath string) *yamlMustSource
- type EditStructFieldFunc
- type Path
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugWriter ¶ added in v0.2.0
func DefaultSource ¶
func DefaultSource() *defaultSource
func IterConfig ¶
func IterConfig(cfg interface{}, editFunc EditStructFieldFunc)
func LoadSources ¶
func LoadSources(cfg interface{}, sources ...Source)
func YamlFileSource ¶
func YamlFileSource(filepath string) *yamlSource
func YamlFileWriter ¶ added in v0.2.3
func YamlFileWriter(filepath string) *yamlWriter
func YamlMustFileSource ¶ added in v0.2.6
func YamlMustFileSource(filepath string) *yamlMustSource
Types ¶
type EditStructFieldFunc ¶
Click to show internal directories.
Click to hide internal directories.