Ecosyste.ms: Packages

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

Top 4.9% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 2.1% dependent repos on proxy.golang.org
Top 6.4% forks on proxy.golang.org

proxy.golang.org : github.com/paked/configure

Package configure is an easy to use multi-layer configuration system. Examples can be found in the example folder (http://github.com/paked/configure/blob/master/examples/) as well as a getting started guide in the main README file (http://github.com/paked/configure). configure makes use of Checkers, which are used to retrieve values from their respective data sources. There are three built in Checkers, Environment, Flag and JSON. Environment retrieves environment variables. Flag retrieves variables within the flags of a command. JSON retrieves values from a JSON file/blob. Checkers can be essentially thought of as "middlewear for configuration", in fact parts of the package API was inspired by negroni (https://github.com/codegangsta/negroni, the awesome net/http middlewear manager) and the standard library's flag package. It is very easy to create your own Checkers, all they have to do is satisfy the Checker interface. That is an, Int method, String method and a Bool method. These functions are used to retrieve their respective data types. A setup method is also required, where the Checker should initialize itself and throw any errors. If you do create your own Checkers I would be more than happy to add a link to the README in the github repository.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/paked/configure
Keywords: configuration, deployment, development, golang
License: MIT
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/paked
Dependent packages: 1
Dependent repositories: 6
Stars: 57 on GitHub
Forks: 10 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 12 days ago

    Loading...
    Readme
    Loading...