get

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(path string, defaultValue ...interface{}) bool

Bool 获取 Bool 类型的配置信息

func Float64

func Float64(path string, defaultValue ...interface{}) float64

Float64 获取 float64 类型的配置信息

func Get

func Get(path string, defaultValue ...interface{}) string

func Int

func Int(path string, defaultValue ...interface{}) int

Int 获取 Int 类型的配置信息

func Int64

func Int64(path string, defaultValue ...interface{}) int64

Int64 获取 Int64 类型的配置信息

func NewViper

func NewViper(filename, path string)

func String

func String(path string, defaultValue ...interface{}) string

String 获取 String 类型的配置信息

func StringMapString

func StringMapString(path string) map[string]string

StringMapString 获取结构数据

func StringSlice

func StringSlice(path string) []string

StringSlice 获取结构数据

func Uint

func Uint(path string, defaultValue ...interface{}) uint

Uint 获取 Uint 类型的配置信息

func Uint64 added in v1.1.6

func Uint64(path string, defaultValue ...interface{}) uint64

Uint64 获取 Uint64 类型的配置信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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