gobootconfig

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const CmdSource = "cmd"
View Source
const EnvSource = "env"

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) (bool, error)

func GetBoolSlice

func GetBoolSlice(key string) ([]bool, error)

func GetBoolSliceWithDefault

func GetBoolSliceWithDefault(key string, def []bool) []bool

func GetBoolWithDefault

func GetBoolWithDefault(key string, def bool) bool

func GetFloat

func GetFloat(key string) (float64, error)

func GetFloatSlice

func GetFloatSlice(key string) ([]float64, error)

func GetFloatSliceWithDefault

func GetFloatSliceWithDefault(key string, def []float64) []float64

func GetFloatWithDefault

func GetFloatWithDefault(key string, def float64) float64

func GetInt

func GetInt(key string) (int64, error)

func GetIntSlice

func GetIntSlice(key string) ([]int64, error)

func GetIntSliceWithDefault

func GetIntSliceWithDefault(key string, def []int64) []int64

func GetIntWithDefault

func GetIntWithDefault(key string, def int64) int64

func GetObject

func GetObject(key string, objPtr interface{}) error

func GetSlice

func GetSlice(key string) ([]interface{}, error)

func GetString

func GetString(key string) (string, error)

func GetStringSlice

func GetStringSlice(key string) ([]string, error)

func GetStringSliceWithDefault

func GetStringSliceWithDefault(key string, def []string) []string

func GetStringWithDefault

func GetStringWithDefault(key string, def string) string

func GetValue

func GetValue(key string) (interface{}, error)

func GetValueWithDefault

func GetValueWithDefault(key string, def interface{}) interface{}

func Load

func Load() error

func Reload

func Reload() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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