hcfg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigPath

func AddConfigPath(path []string)

func Dump

func Dump(call func(key string, val any))

Dump Used to output all used configurations

func GetBool

func GetBool(key string, def ...bool) bool

func GetDuration

func GetDuration(key string, def ...time.Duration) time.Duration

func GetInt

func GetInt(key string, def ...int) int

func GetInt64

func GetInt64(key string, def ...int64) int64

func GetString

func GetString(key string, def ...string) string

func GetUint64

func GetUint64(key string, def ...uint64) uint64

func MustGetString

func MustGetString(key string) (string, error)

func ReadInConfig

func ReadInConfig()

func SetConfigName

func SetConfigName(name string)

func SetConfigType

func SetConfigType(t string)

func SetEvnPrefix

func SetEvnPrefix(in string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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