Top 7.0% dependent packages on proxy.golang.org
proxy.golang.org : github.com/jaredreisinger/asp
asp, the Automatic Settings Provider, an opinionated companion for viper and cobra. ## Why does this exist? The cobra package provides excellent command-line flag functionality, and viper provides a rich configuration store and environment variable binding… _but_… there’s a lot of boilerplate and redundant code if you want to achieve the nirvana of CLI flags and environment variables _and_ configuration file support for _**all**_ flags/settings in your application. The asp package attempts to reduce this boilerplate by capturing it all from your “canonical” configure structure definition. ### The goals of asp are to reduce the redundant boilerplate by concisely defining all of the necessary information in the config struct itself; encourage good practices by ensuring that _every_ option has config, command-line _and_ environment variable representation; avoid possible typos that using string-based configuration lookups can cause—Go can’t tell that `viper.Get("sommeSetting")` is misspelled at compile time—but it _can_ tell that `config.sommeSetting` is invalid if the struct defines the member as `config.someSetting`.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/jaredreisinger/asp
License: ISC
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/jaredreisinger
Dependent packages: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
Docker dependents: 1
Docker downloads: 120
See more repository details: repos.ecosyste.ms
Last synced: 16 days ago