Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.6.0
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 ¶ added in v1.6.0
WithConfigFile set config filename
Click to show internal directories.
Click to hide internal directories.