env

package
v0.0.0-...-dd0b383 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = fmt.Errorf("env")

Functions

func Load

func Load[T Parseable](name string) T

func LoadDuration

func LoadDuration(name string) time.Duration

func LoadSlice

func LoadSlice[T Parseable](name string, sep string) []T

func Parse

func Parse[T Parseable](str string) (T, error)

Types

type Parseable

type Parseable interface {
	~string | ~bool | ~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
		~float32 | ~float64 | ~complex64 | ~complex128
}

Jump to

Keyboard shortcuts

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