env

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string) (bool, error)

func BoolDefault

func BoolDefault(key string, def bool) bool

func BytesB64 added in v0.8.0

func BytesB64(key string) ([]byte, error)

func BytesB64Default added in v0.8.0

func BytesB64Default(key string, def []byte) []byte

func BytesHex added in v0.8.0

func BytesHex(key string) ([]byte, error)

func BytesHexDefault added in v0.8.0

func BytesHexDefault(key string, def []byte) []byte

func Dur added in v0.8.0

func Dur(key string) (time.Duration, error)

func DurDefault added in v0.8.0

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

func Int

func Int(key string) (int, error)

func IntDefault

func IntDefault(key string, def int) int

func MustBool

func MustBool(key string) bool

func MustBytesB64 added in v0.8.0

func MustBytesB64(key string) []byte

func MustBytesHex added in v0.8.0

func MustBytesHex(key string) []byte

func MustDur added in v0.8.0

func MustDur(key string) time.Duration

func MustInt

func MustInt(key string) int

func MustStr

func MustStr(key string) string

func New

func New(filenames ...string) error

func Str

func Str(key string) (string, error)

func StrDefault

func StrDefault(key, def 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