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 {
AuthKey string `yaml:"auth_key"`
DefaultLang DefaultLang `yaml:"default_lang"`
}
func LoadConfig ¶
func LoadConfig() *Config
func ParseConfig ¶
func (*Config) DefaultLangs ¶
func (*Config) GetAuthKey ¶ added in v0.3.0
type DefaultLang ¶
Click to show internal directories.
Click to hide internal directories.