viper

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C = viper.New()

Functions

func BuildVipers

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

func CheckToml

func CheckToml(configs string)

func GetEnvConfig

func GetEnvConfig(key string) *utils.TypeTransform

func MergeConfigToToml added in v2.0.2

func MergeConfigToToml(configs string)

func NewConfig

func NewConfig(filePath string, fileName string)

func NewConfigToToml

func NewConfigToToml(configs string)

Types

type Viper

type Viper struct {
	C *viper.Viper
}

func LoadViperByFilename

func LoadViperByFilename(filename string) *Viper

Jump to

Keyboard shortcuts

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