conf

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.1.1

func Bool(key string) bool

func BoolDefault added in v0.1.1

func BoolDefault(key string, dv bool) bool

func BoolMap added in v0.1.1

func BoolMap(key string) map[string]bool

func DurationDefault added in v0.1.19

func DurationDefault(key string, dv time.Duration) time.Duration

func IntDefault added in v0.1.8

func IntDefault(key string, dv int) int

func IntMap

func IntMap(key string) map[string]int

func LoadConfig

func LoadConfig() error

func String

func String(key string) string

func StringDefault

func StringDefault(key, dv string) string

func StringMap added in v0.1.8

func StringMap(key string) map[string]string

func Strings added in v0.1.8

func Strings(key string) []string

func StringsDefault added in v0.1.8

func StringsDefault(key string, dv []string) []string

func Unmarshal added in v0.1.8

func Unmarshal(key string, o any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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