command
module
Version:
v0.0.0-...-838b099
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Configurations Loading using Viper and PFlag
An example of implementing configurations in an application using the viper
and pflag
packages.
- CLI arguments (top precedence)
- environment variables
- configuration file
- default values
The pflag
package can be configured to allow POSIX/GNU style --
flags or the short form flags -
.
Setup
<<<<<<< Updated upstream
-
Build the program.
$ make
-
Run the program
$ CYBER_DIRECTORY=env bin/viper --postgres-url=arg
Dump of config: {true 5000 arg env default}
Reference and Credits
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.