Versions in this module Expand all Collapse all v1 v1.0.1 Jan 8, 2021 Changes in this version + type BaseContext struct + Vc *viper.Viper + func NewBaseContext(contextImpl IContext, homePath string, configFilePath string, envPrefix string) BaseContext + func (ctx *BaseContext) BindPFlags(flagSet *pflag.FlagSet) + func (ctx *BaseContext) ExpandPathEnv(path string) string + func (ctx *BaseContext) LoadOrCreateConfig(defaultConf interface{}) error + type IContext interface + GetConfigFileName func() string + GetDefaultConfig func() interface{} + GetHomePath func() string + GetTemplate func() string