Categorygithub.com/go-bricks/bviper
modulepackage
0.0.17
Repository: https://github.com/go-bricks/bviper.git
Documentation: pkg.go.dev

# README

bviper

codecov

Viper brick to be used by Bricks

# Functions

Builder creates a simple viper instance with a given config file path configFilePath should point to a file that have one of these extensions: "json", "toml", "yaml", "yml", "properties", "props", "prop", "hcl", "dotenv", "env", "ini".
CustomBuilder allows one to use an already initialized and configure Viper instance Note: It's important to receive a viper instance that is already initialized using viper.ReadInConfig() or viper.ReadConfig(in io.Reader) or viper.ReadRemoteConfig() Also note that all other Builder function will do nothing since we assume this instance is configured properly.

# Constants

EnvKeyDelimiterFrom shell environment delimiter.
EnvKeyDelimiterTo delimiter used by application.