env

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 10 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 Int64 added in v0.11.0

func Int64(key string) (int64, error)

func Int64Default added in v0.11.0

func Int64Default(key string, def int64) int64

func IntDefault

func IntDefault(key string, def int) int

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