package
Version:
v0.3.11
Opens a new window with list of versions in this module.
Published: Sep 22, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FromEnv reads the config from environment variables
FromFile reads the config from a file
type Config struct {
AppEnv string `json:"app_env" envconfig:"APP_ENV" default:"development"`
DatabaseURL string `json:"database_url" envconfig:"DATABASE_URL" required:"true"`
}
Config holds the configuration data
Source Files
¶
Click to show internal directories.
Click to hide internal directories.