Documentation ¶ Index ¶ type Config func New() (cfg *Config, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Website website `toml:"website"` Repository repository `toml:"repository"` Server server `toml:"server"` Mysql mysql `toml:"mysql"` } Config provides the configurations for the application. func New ¶ func New() (cfg *Config, err error) New creates a Config with the default config.toml file, which then overwritten by local custom config.toml file. Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.