Documentation ¶ Index ¶ type Settings func Load() (*Settings, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Settings ¶ type Settings struct { // mysql's connection string required by the gorm mysql driver MySQLDSN string `envconfig:"MYSQL_DSN" required:"true"` // the address the web server listens on ServerAddr string `envconfig:"SERVER_ADDR" default:":8080"` } func Load ¶ func Load() (*Settings, error) Load loads the env vars from the .env file, serializes them into a Settings struct Source Files ¶ View all Source files settings.go Click to show internal directories. Click to hide internal directories.