Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IConfig ¶
type IConfig interface { SetConfig(cfg any) ReadFile(file string) error Decode() error Defaults() error Validate() error }
var Config IConfig = &YAMLConfig{}
type YAMLConfig ¶
type YAMLConfig struct {
// contains filtered or unexported fields
}
func (*YAMLConfig) Decode ¶
func (this *YAMLConfig) Decode() error
func (*YAMLConfig) Defaults ¶
func (this *YAMLConfig) Defaults() error
func (*YAMLConfig) ReadFile ¶
func (this *YAMLConfig) ReadFile(file string) error
func (*YAMLConfig) SetConfig ¶
func (this *YAMLConfig) SetConfig(config any)
func (*YAMLConfig) Validate ¶
func (this *YAMLConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.