• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

adaptconf/H17-Apr-2017-

adaptenv/H17-Apr-2017-

adaptflag/H17-Apr-2017-

cflag/H17-Apr-2017-

cstruct/H17-Apr-2017-

exampleapp/H17-Apr-2017-

exampleapp2/H17-Apr-2017-

manual/H17-Apr-2017-

README.mdH A D17-Apr-20171.4 KiB

easyconfig.goH A D17-Apr-20172.1 KiB

README.md

1easyconfig: Easy bindings for configurable
2==========================================
3
4[![GoDoc](https://godoc.org/gopkg.in/hlandau/easyconfig.v1?status.svg)](https://godoc.org/gopkg.in/hlandau/easyconfig.v1)
5
6easyconfig provides utilities for use with
7[configurable](https://github.com/hlandau/configurable). It makes it easy to
8get started with configurable using familiar interfaces.
9
10Import as: `gopkg.in/hlandau/easyconfig.v1`
11
12Packages provided
13-----------------
14
15The `cflag` package allows you to easily declare configuration items in a flag-like manner.
16
17The `cstruct` package allows you to automatically generate configuration items from an annotated structure.
18
19The `adaptflag` package adapts declared configuration items to flags and
20registers them with the standard flag package and the
21[pflag](https://github.com/ogier/pflag) package. You can also use it with any
22flag package you like if it implements a similar registration interface.
23
24The `easyconfig` package itself provides a simple struct-based configuration
25interface; see the documentation in the examples.
26
27Licence
28-------
29
30    © 2015 Hugo Landau <hlandau@devever.net>    MIT License
31    © 2017 Google, Inc.
32
33[Licenced under the licence with SHA256 hash
34`fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc`, a copy of
35which can be found
36here.](https://raw.githubusercontent.com/hlandau/acme/master/_doc/COPYING.MIT)
37