https://github.com/crabi/cfg
Configuration setup package for crabi microservices
https://github.com/crabi/cfg
library
Last synced: about 1 month ago
JSON representation
Configuration setup package for crabi microservices
- Host: GitHub
- URL: https://github.com/crabi/cfg
- Owner: crabi
- Created: 2018-04-14T01:38:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-02T23:57:21.000Z (about 1 year ago)
- Last Synced: 2025-12-18T08:51:35.909Z (7 months ago)
- Topics: library
- Language: Go
- Size: 2.08 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cfg
## About
Go package that defines a standard way to load configuration using viper.
## Disclaimer
This library does not standarizes how the required variables are loaded. A clear example of loading variables via
command line flags be found in `example/main.go`.
## Requirements
- Viper
## Usage
Expected default config files:
- config/default.yaml
- config/local.yaml
Suggested additional config files:
- config/develop.yaml
- config/test.yaml
- config/staging.yaml
- config/production.yaml
For an example, see the directory `example/`.