Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crazy-max/gonfig
Lightweight config handling for Go
https://github.com/crazy-max/gonfig
configuration environment-variables file flags golang golang-library yaml
Last synced: about 1 month ago
JSON representation
Lightweight config handling for Go
- Host: GitHub
- URL: https://github.com/crazy-max/gonfig
- Owner: crazy-max
- License: mit
- Created: 2020-07-15T09:38:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T06:46:52.000Z (7 months ago)
- Last Synced: 2024-10-18T07:32:18.422Z (4 months ago)
- Topics: configuration, environment-variables, file, flags, golang, golang-library, yaml
- Language: Go
- Homepage: https://pkg.go.dev/github.com/crazy-max/gonfig
- Size: 211 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
## About
This library is heavily inspired by the traefik config package. It offers a simple and performant config handling with:
* Configuration files in YAML or TOML format
* Environment variables
* Flag argumentsAn example is available [here](_example).
## Installation
```
go get github.com/crazy-max/gonfig
```## Contributing
Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You
can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by making
a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!Thanks again for your support, it is much appreciated! :pray:
## License
MIT. See `LICENSE` for more details.