Documentation ¶ Index ¶ func DefaultPath() string func Get(path, key string) (string, error) func Save(path string, cfg *Config) error func Set(path, key, value string) error type Config func Load(path string) (*Config, error) func (c *Config) Validate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DefaultPath ¶ func DefaultPath() string func Get ¶ func Get(path, key string) (string, error) func Save ¶ func Save(path string, cfg *Config) error func Set ¶ func Set(path, key, value string) error Types ¶ type Config ¶ type Config struct { Domain string `koanf:"domain" yaml:"domain"` Token string `koanf:"token" yaml:"token"` } func Load ¶ func Load(path string) (*Config, error) func (*Config) Validate ¶ func (c *Config) Validate() error Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.