config

package
v0.0.0-...-5a53ebd Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](key string, fallback ...T) T

func MustEnv

func MustEnv[T any](key string, fallback T) T

MustEnv returns the value of the environment variable or panics if the variable is not set or if the type is unsupported.

func Reset

func Reset()

func Set

func Set(key string, value interface{})

Types

type ConfigMap

type ConfigMap map[string]interface{}
var (
	Conf ConfigMap = make(ConfigMap)
)

func GetAll

func GetAll() ConfigMap

Jump to

Keyboard shortcuts

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