app

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL