Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupConfig ¶
SetupConfig reads the configuration from the specified file
Types ¶
type Config ¶
type Config struct { Debug bool `mapstructure:"debug"` Server Server `mapstructure:"server"` DSN string `mapstructure:"dsn"` Log Log `mapstructure:"log"` }
Config is the entrypoint for all configuration items
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig create a default configuration structure with the same values as the default configuration in config.yaml
Click to show internal directories.
Click to hide internal directories.