config

package
v1.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env = map[string]struct{}{
	"dev":      {},
	"liantiao": {},
	"qa":       {},
	"online":   {},
}

Functions

func Dir added in v1.0.25

func Dir() (string, error)

func Path added in v1.0.24

func Path() string

func ReadConfig added in v1.0.24

func ReadConfig(file, typ string, data interface{}) (err error)

Types

type Viper

type Viper struct {
	*viper.Viper
	// contains filtered or unexported fields
}

func Config added in v1.0.24

func Config() *Viper

func New added in v1.0.24

func New(env string) *Viper

func (*Viper) Path added in v1.0.24

func (v *Viper) Path() string

func (*Viper) ReadConfig

func (v *Viper) ReadConfig(file, typ string, data interface{}) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL