Top 0.6% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 9.9% forks on proxy.golang.org
Top 1.3% docker downloads on proxy.golang.org
proxy.golang.org : 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:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/meowgorithm/babyenv
Keywords:
environment-variables
, go
License: MIT
Latest release: over 4 years ago
First release: over 6 years ago
Namespace: github.com/meowgorithm
Dependent packages: 58
Dependent repositories: 222
Stars: 33 on GitHub
Forks: 3 on GitHub
Docker dependents: 14
Docker downloads: 428,414
See more repository details: repos.ecosyste.ms
Last synced: 16 days ago