Top 1.6% dependent repos on proxy.golang.org
proxy.golang.org : github.com/csmith/envflag
Package envflag facilitates setting standard Go flags using environment variables. Simply replace the typical call to flag.Parse() with envflag.Parse(). Flag names are mapped to environment variables by converting them to uppercase, and replacing dashes with underscores (e.g. `my-flag` => `MY_FLAG`). Command-line arguments will take precedence over environment variables where both are specified. You can customise the behaviour of envflag by passing in options to the Parse() method. For example, to add a prefix to all environment variables: This will map a flag named `my-flag` to the environment variable `MYAPP_MY_FLAG`.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/csmith/envflag
License: MIT
Latest release: over 3 years ago
First release: over 3 years ago
Namespace: github.com/csmith
Dependent packages: 12
Dependent repositories: 11
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 8 days ago