eviper

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildVipers

func BuildVipers(filePath string, fileName ...string)

func CheckToml

func CheckToml(configs string)

func GetPath added in v1.1.6

func GetPath() string

GetPath 获取项目路径

Types

type Viper

type Viper struct {
	*viper.Viper
}

func LoadViperByFilename

func LoadViperByFilename(filename string) *Viper

func NewViperFromFile

func NewViperFromFile(filePath string, fileName string) *Viper

func NewViperFromString

func NewViperFromString(configs string) *Viper

func (*Viper) GetEnvConfig

func (v *Viper) GetEnvConfig(key string) string

func (*Viper) MergeViperFromString

func (v *Viper) MergeViperFromString(configs string)

Jump to

Keyboard shortcuts

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