Documentation
¶
Index ¶
- type Config
- func (cfg *Config) Decode(to any) error
- func (cfg *Config) DecodeFile(to any, path string, fps ...FileParser) error
- func (cfg *Config) DecodeWithConfig(dc *mapstruct.DecoderConfig) error
- func (cfg *Config) Get() map[string]any
- func (cfg *Config) Load(l Loader) error
- func (cfg *Config) Merge(msa map[string]any) error
- func (cfg *Config) ReadAndParse(r Reader, p Parser) error
- type FileParser
- type Loader
- type Parser
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) DecodeFile ¶
func (cfg *Config) DecodeFile(to any, path string, fps ...FileParser) error
func (*Config) DecodeWithConfig ¶
func (cfg *Config) DecodeWithConfig(dc *mapstruct.DecoderConfig) error
type FileParser ¶
Click to show internal directories.
Click to hide internal directories.