util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchThroughCache added in v1.1.0

func FetchThroughCache[T any, K any](c *cache.Cache[T], key K, fetch func(K) (T, error)) (T, error)

func GetEnvList

func GetEnvList(key string) []string

func GetEnvOrDefault

func GetEnvOrDefault(key, defaultVal string) string

func GetEnvOrDefaultUint

func GetEnvOrDefaultUint(key string, val uint) uint

func NewCache added in v1.1.0

func NewCache[T any](defaultExpiration time.Duration) *cache.Cache[T]

func ToEnvironmentName

func ToEnvironmentName(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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