Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrNotReadFile = ConfigErr("can not read config file") ErrNotUnmarshal = ConfigErr("can not unmarshal config data") )
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
func ConfigFile() string
func WriteConfigFile ¶ added in v0.2.0
Types ¶
type Config ¶
type Config struct {
Account Account `yaml:"account"`
DefaultLang DefaultLang `yaml:"default_lang"`
}
func LoadConfig ¶
func LoadConfig() *Config
func ParseConfig ¶
func (*Config) DefaultLangs ¶
type DefaultLang ¶
Click to show internal directories.
Click to hide internal directories.