crazy-max / gonfig

Lightweight config handling for Go

Home Page:https://pkg.go.dev/github.com/crazy-max/gonfig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PkgGoDev Test workflow Go Report Codecov
Become a sponsor Donate Paypal

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 arguments

An example is available here.

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 or by making a Paypal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

About

Lightweight config handling for Go

https://pkg.go.dev/github.com/crazy-max/gonfig

License:MIT License


Languages

Language:Go 99.3%Language:Dockerfile 0.5%Language:HCL 0.2%