Documentation ¶
Overview ¶
Package viper provide viper bundle.
Index ¶
Constants ¶
View Source
const ( // BundleName is default definition name. BundleName = "viper" // DefConfigFlag is config persistent flag name. DefConfigFlag = "cli.persistent_flags.config" )
Variables ¶
View Source
var ( // ErrUndefinedAppPath is error, triggered when app.path is undefined in current context. ErrUndefinedAppPath = errors.New("app.path is undefined") // ErrUndefinedCliCmd is error, triggered when cli.cmd is undefined in current context. ErrUndefinedCliCmd = errors.New("cli.cmd is undefined") )
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle implements the glue.Bundle interface.
func NewBundleWithConfig ¶
NewBundleWithConfig create bundle instance with config.
Click to show internal directories.
Click to hide internal directories.