An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/meowgorithm/babyenv

Package babyenv collects environment variables and places them in corresponding struct fields. It aims to reduce the boilerplate in reading data from the environment. The struct should contain `env` tags indicating the names of corresponding environment variables. The values of those environment variables will be then collected and placed into the struct. If nothing is found, struct fields will be given their default values (for example, `bool`s will be `false`). Default values can also be provided in the `default` tag. A 'required' flag can also be set in the following format: If a required flag is set the 'default' tag will be ignored. Only a few types are supported: string, bool, int, []byte, *string, *bool, *int, *[]byte. An error will be returned if other types are attempted to be processed. Example:

Ecosystem
proxy.golang.org
Latest Release
v1.3.1
about 5 years ago
Versions
6
Dependent Packages
58
Dependent Repos
222
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/meowgorithm/babyenv
spec
License MIT
Namespace github.com/meowgorithm
First Release about 7 years ago
Last Synced 21 days ago
Repository
Stars 33 on GitHub
Forks 3 on GitHub
Docker Dependents 14
Docker Downloads 428,414
Rankings on proxy.golang.org
Overall Top 3.8%
Dependent packages Top 0.6%
Dependent repos Top 0.4%
Forks Top 9.9%
Docker downloads Top 1.3%