Documentation ¶ Index ¶ type APIConfig type AppConfig func Load(configFile string) (*AppConfig, error) type PostgresConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIConfig ¶ type APIConfig struct { Environment string `mapstructure:"ENV"` Host string `mapstructure:"HOST"` Port string `mapstructure:"PORT"` } type AppConfig ¶ type AppConfig struct { API *APIConfig `mapstructure:"API"` Postgres *PostgresConfig `mapstructure:"POSTGRES"` } func Load ¶ func Load(configFile string) (*AppConfig, error) type PostgresConfig ¶ type PostgresConfig struct { Host string `mapstructure:"HOST"` Port string `mapstructure:"PORT"` User string `mapstructure:"USER"` Password string `mapstructure:"PASSWORD"` DB string `mapstructure:"DB"` } Source Files ¶ View all Source files config.go load.go Click to show internal directories. Click to hide internal directories.