Documentation ¶ Index ¶ func Dir() (string, error) func Init(path string) func Path() string func ReadConfig(file, typ string, data interface{}) (err error) type Viper func Config() *Viper func New(path string) *Viper func (v *Viper) Path() string func (v *Viper) ReadConfig(file, typ string, data interface{}) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Dir ¶ func Dir() (string, error) func Init ¶ func Init(path string) func Path ¶ func Path() string func ReadConfig ¶ func ReadConfig(file, typ string, data interface{}) (err error) Types ¶ type Viper ¶ type Viper struct { *viper.Viper // contains filtered or unexported fields } func Config ¶ func Config() *Viper func New ¶ func New(path string) *Viper func (*Viper) Path ¶ func (v *Viper) Path() string func (*Viper) ReadConfig ¶ func (v *Viper) ReadConfig(file, typ string, data interface{}) (err error) Source Files ¶ View all Source files viper.go Click to show internal directories. Click to hide internal directories.