{"repo":"cristalhq/aconfig","free":true,"listed":false,"github":"https://github.com/cristalhq/aconfig","clone":"git clone https://github.com/cristalhq/aconfig.git","description":"Simple, useful and opinionated config loader.","language":"Go","stars":639,"topics":["go","golang","dependency-free","config","configuration","configuration-files","environment-variables","command-line","json","yaml"],"license":"MIT","category":"cli-tools","readme_excerpt":"aconfig [![build-img]][build-url] [![pkg-img]][pkg-url] [![version-img]][version-url] Simple, useful and opinionated config loader. Rationale There are many solutions regarding configuration loading in Go. I was looking for a simple loader that is as easy to use and understand as possible. The goal was to load config from 4 places: defaults (in the code), files, environment variables, command-line flags. This library works with all of these sources. Features Simple API. Clean and tested code. Automatic fields mapping. Supports different sources: defaults in the code files (JSON, YAML, TOML, DotENV, HCL) environment variables command-line flags Dependency-free (file parsers are optional). Ability to walk over configuration fields. Install Go version 1.14+ Example Also see examples: examples test.go. Integration with spf13/cobra playground. Documentation See [these docs][pkg-url]. License MIT License. [build-img]: https://github.com/cristalhq/aconfig/workflows/build/badge.svg [build-url]: https://github.com/cristalhq/aconfig/actions [pkg-img]: https://pkg.go.dev/badge/cristalhq/aconfig [pkg-url]: https://pkg.go.dev/github.com/cristalhq/aconfig [version-img]: https://img.shields.io/github/v/release/cristalhq/aconfig [version-url]: https://github.com/cristalhq/aconfig/releases","default_branch":null,"files":null,"tree":[],"storefront":"/r/cristalhq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cristalhq/aconfig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}