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
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.
© 2015 Hugo Landau <hlandau@devever.net> MIT License