Categorygithub.com/tommyo/go-easy-config
modulepackage
0.4.0
Repository: https://github.com/tommyo/go-easy-config.git
Documentation: pkg.go.dev

# README

go-easy-config

A strongly opinionated configurator.

Currently wraps around the awesome viper and pflag libraries, and uses gookit/event to notify config clients.

# Functions

Bind parses a struct definition and autobinds pflags based on the struct 'json' tag.
No description provided by the author
No description provided by the author
SetEnvPrefix tells Viper to check environment variables.
SetFile tells Viper the file name and paths to search, and autoloads the config.
ShowConfig will output all config values as yaml if the --print-config flag is set returns the value of the print-config flag.
ShowHelp will output all config options as flags if the --help/-h flag is passed returns the value of the help flag.

# Type aliases

No description provided by the author