settings

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

快捷获取 bool

func GetDuration

func GetDuration(key string) time.Duration

快捷获取时间长度

func GetInt

func GetInt(key string) int

快捷获取整形

func GetInt64

func GetInt64(key string) int64

快捷获取64位整形

func GetString

func GetString(key string) string

快捷获取字符串

func Init

func Init(fileName string)

Types

type Settings

type Settings struct {
	*viper.Viper
}

func GetSettings

func GetSettings() *Settings

获取 Settings

Jump to

Keyboard shortcuts

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