Documentation
¶
Index ¶
- func Load(file string, v any, opts ...Option) error
- func LoadConfigFromYamlBytes(content []byte, v any) error
- func LoadFromJsonBytes(content []byte, v any) error
- func LoadFromTomlBytes(content []byte, v any) error
- func LoadFromYamlBytes(content []byte, v any) error
- func MustLoad(path string, v any, opts ...Option)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromYamlBytes ¶
LoadConfigFromYamlBytes loads config into v from content yaml bytes. Deprecated: use LoadFromYamlBytes instead.
func LoadFromJsonBytes ¶
LoadFromJsonBytes loads config into v from content json bytes.
func LoadFromTomlBytes ¶
LoadFromTomlBytes loads config into v from content toml bytes.
func LoadFromYamlBytes ¶
LoadFromYamlBytes loads config into v from content yaml bytes.
Types ¶
Click to show internal directories.
Click to hide internal directories.