Ecosyste.ms: Packages

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

Top 7.9% on proxy.golang.org
Top 1.0% dependent packages on proxy.golang.org
Top 1.8% dependent repos on proxy.golang.org
Top 1.4% docker downloads on proxy.golang.org

proxy.golang.org : golift.io/cnfg

Package cnfg provides procedures to parse a slew of environment variables into a struct pointer. Use this package if your app uses a config file and you want to allow users to change or override the configurations in that file with environment variables. You can also use this app just to parse environment variables; handling a config file is entirely optional. Every member type is supported. If I missed one, please open an issue. If you need a non-base type supported (net.IP works already) please open an issue. New types are extremely easy to add. If this package interests you, pull requests and feature requests are welcomed! I consider this package the pinnacle example of how to configure Go applications from a file. You can put your configuration into any file format: XML, YAML, JSON, TOML, and you can override any struct member using an environment variable. I created this package because I got tired of writing custom env parser code for every app I make. This simplifies all the heavy lifting and I don't even have to think about it now. I hope you enjoy using this simplification as much as I do!

Registry - Source - Documentation - JSON
purl: pkg:golang/golift.io/cnfg
Keywords: docker-library, environment-variables, go-config, go-env, go-library, golang, golang-library, golang-module
License: MIT
Latest release: 4 months ago
First release: over 4 years ago
Namespace: golift.io
Dependent packages: 25
Dependent repositories: 8
Stars: 2 on GitHub
Forks: 0 on GitHub
Docker dependents: 3
Docker downloads: 1,251
See more repository details: repos.ecosyste.ms
Last synced: 16 days ago

    Loading...
    Readme
    Loading...