Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { // LogLevel is INFO or DEBUG. Default is "INFO". LogLevel string `envconfig:"LOG_LEVEL" default:"INFO"` // Env is environment where application is running The value must be // "development" or "production". Env string `envconfig:"ENV" required:"true"` // Port is http serve port. Port int `envconfig:"PORT" default:"8000"` }
Env stores configuration settings extract from enviromental variables by using https://github.com/kelseyhightower/envconfig
func ReadFromEnv ¶
ReadFromEnv reads configuration from environmental variables defined by Env struct.
Click to show internal directories.
Click to hide internal directories.