Documentation ¶
Overview ¶
A simple app using a variety of config sources.
This example app demonstrates the overlaying of four config sources: - flag - env - json config file - default JSON []byte.
The sources are overlayed in decreasing order of importance, as per the order above.
The app allows you to play with the input sources and view the results.
This is only an example of one particular precedence ordering and with one set of sources, but is probably a reasonably common one. Other applications may define other sources or orderings as they see fit.
Click to show internal directories.
Click to hide internal directories.