AppConf

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolean

func GetBoolean(path string, defaultValue ...bool) bool

func GetDataDir

func GetDataDir() string

func GetDataSize

func GetDataSize(path string) int64

func GetDuration

func GetDuration(path string) time.Duration

func GetEnv

func GetEnv() string

func GetFloat

func GetFloat(path string, defaultValue ...float64) float64

func GetInt

func GetInt(path string, defaultValue ...int) int

func GetInt64

func GetInt64(path string, defaultValue ...int64) int64

func GetIntSlice

func GetIntSlice(path string) []int

func GetMap

func GetMap(path string) map[string]interface{}

func GetMapSlice

func GetMapSlice(path string) []map[string]interface{}

func GetSlice

func GetSlice(path string) []interface{}

func GetString

func GetString(path string, defaultValue ...string) string

func GetStringMap

func GetStringMap(path string) map[string]string

func GetStringSlice

func GetStringSlice(path string) []string

func InitFromJson

func InitFromJson(arg0 interface{})

func InitFromMap

func InitFromMap(arg0 interface{})

func InitFromYaml

func InitFromYaml(arg0 interface{})

func SetDataDir

func SetDataDir(dir string)

func SetEnv

func SetEnv(env string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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