cfc
cfc means config customize.
It uses viper internal encoding package. Thanks for spf13.
But also you can use cfctl to get value in command line or shell scripts...
import package
import "github.com/jaronnie/cfc"
how to use cfc package
_example
download cfctl
release
how to use cfctl
cfctl get name -f test.toml
cfctl set_string name value -f test.toml
# default config file type is toml, if others please use -p to specify config file type
cat test.toml | cfctl get name
if you want to get more about cfctl, click here