kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.02k stars 377 forks source link

issue #45 convert to a two phase approach and add usage capability #61

Closed davidkbainbridge closed 8 years ago

davidkbainbridge commented 8 years ago

there is now a GatherInformation phase and then two second phases, Process to populate the structure, and Usage to output usage information.

The GatherInformation and associated structure VarInfo are public / exposed so that additional behavior can be written outside of the core package if desired.