Documentation ¶ Index ¶ type Config func LoadConfig() (config Config, err error) type DatabaseConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Database *DatabaseConfig } func LoadConfig ¶ func LoadConfig() (config Config, err error) type DatabaseConfig ¶ type DatabaseConfig struct { Host string `envconfig:"DB_HOST"` Port string `envconfig:"DB_PORT"` Name string `envconfig:"DB_NAME"` User string `envconfig:"DB_USER"` Password string `envconfig:"DB_PASSWORD"` } Source Files ¶ View all Source files config.go database.go Click to show internal directories. Click to hide internal directories.