config

package
v0.0.0-...-b804f52 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) interface{}

func Init

func Init() (err error)

func InitTest

func InitTest() (err error)

func Unmarshal

func Unmarshal(rawVal interface{}) error

func UnmarshalKey

func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error

Types

type AppConfig

type AppConfig struct {
	Name    string
	Version string
	MaxProc int
}

func GetAppConfig

func GetAppConfig() *AppConfig

Jump to

Keyboard shortcuts

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