Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
// Load config load
Load() error
// IsSet is set value
IsSet(key string) bool
// ReadSection read val by key,val must be a pointer
ReadSection(key string, val interface{}) error
// Store save config to file
Store(path string) error
}
Config interface associated with reading/saving configuration files.
type Option ¶
type Option func(*Options)
Option for ConfigOption
func WithConfigFile ¶
WithConfigFile set config filename
Click to show internal directories.
Click to hide internal directories.