package
0.0.0-20201022224356-b09f34314768
Repository: https://github.com/travmatth-org/qaas.git
Documentation: pkg.go.dev
# Functions
IsProd indicates whether server under production configuration.
New constructs and returns a configuration with the specified options.
ParseOverrides overrides values in the config struct with environment variables and values passed from os.Args through opts.
Update accepts the os.Args array and overrides the Config, first with available env vars then with cli options.
WithFile locates and parses the config file into the Config struct.
# Constants
Development is string literal for dev environments.
Production is string literal for prod environments.
Test is string literal for test environments.
# Type aliases
Opts is the type signature for optional configuration functions.