💾 Easy bindings for hlandau/configurable
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adaptconf
adaptenv
adaptflag
cflag
cstruct
exampleapp
exampleapp2
manual
README.md
easyconfig.go

README.md

easyconfig: Easy bindings for configurable

GoDoc

easyconfig provides utilities for use with configurable. It makes it easy to get started with configurable using familiar interfaces.

Import as: gopkg.in/hlandau/easyconfig.v1

Packages provided

The cflag package allows you to easily declare configuration items in a flag-like manner.

The cstruct package allows you to automatically generate configuration items from an annotated structure.

The adaptflag package adapts declared configuration items to flags and registers them with the standard flag package and the pflag package. You can also use it with any flag package you like if it implements a similar registration interface.

The easyconfig package itself provides a simple struct-based configuration interface; see the documentation in the examples.

Licence

© 2015 Hugo Landau <hlandau@devever.net>    MIT License
© 2017 Google, Inc.

Licenced under the licence with SHA256 hash fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc, a copy of which can be found here.