Documentation
¶
Index ¶
- func GetKeyToTransformMap(value any) map[string]TransformTarget
- func WatchFile(path string, f *file.File, loadFunc func())
- type Config
- func (config Config) ApplyTransformFuncs(structSchema any, path string, ...)
- func (config *Config) Delete(path string) error
- func (config *Config) Load(data map[string]any, path string) error
- func (config *Config) LoadDir(path string, dir string, ext string, parser koanf.Parser) error
- func (config *Config) LoadEnv() (koanf.Provider, error)
- func (config *Config) LoadFile(path string, parser koanf.Parser) (koanf.Provider, error)
- func (config *Config) MergeLayers(layers ...*koanf.Koanf)
- func (config *Config) NormalizeEnv(key string, value string) (string, any)
- func (config *Config) OnLoad(onLoad func())
- func (config *Config) TemplateConfig()
- type TransformTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyToTransformMap ¶
func GetKeyToTransformMap(value any) map[string]TransformTarget
Types ¶
type Config ¶
type Config struct {
Layer *koanf.Koanf
LoadFunc func()
}
func (Config) ApplyTransformFuncs ¶
func (*Config) MergeLayers ¶
func (config *Config) MergeLayers(layers ...*koanf.Koanf)
func (*Config) NormalizeEnv ¶
func (*Config) TemplateConfig ¶
func (config *Config) TemplateConfig()
Click to show internal directories.
Click to hide internal directories.