Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_LANG = "en" DEFAULT_NICKNAME = "perpetua" DEFAULT_USER = "perpetua" Version = "0.1a" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { Hostname string Port uint16 UseTLS, SkipVerify bool } IRC struct { Nickname, User string Channels []string } I18N struct { Lang string } }
Config is used to store information about the configuration of the bot.
func (*Config) Read ¶
Read configuration from file specified by configFile and use the default config file CONFIG_FILE if configFile is empty.
func (*Config) ReadFromString ¶
Read configuration from string.
Click to show internal directories.
Click to hide internal directories.