env

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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

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

func BytesB64Default

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

func BytesHex

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

func BytesHexDefault

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

func Dur

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

func DurDefault

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

func Int

func Int(key string) (int, error)

func Int32

func Int32(key string) (int32, error)

func Int32Default

func Int32Default(key string, def int32) int32

func Int64

func Int64(key string) (int64, error)

func Int64Default

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

func Uint32

func Uint32(key string) (uint32, error)

func Uint32Default

func Uint32Default(key string, def uint32) uint32

func Uint64

func Uint64(key string) (uint64, error)

func Uint64Default

func Uint64Default(key string, def uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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