env

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() map[string]string

func Get

func Get(key string) (string, error)

func GetBool

func GetBool(key string) (bool, error)

func GetBoolOr

func GetBoolOr(key string, defaultValue bool) (bool, error)

func GetBoolOrDefault

func GetBoolOrDefault(key string, defaultValue bool) bool

func GetFloat

func GetFloat(key string) (float64, error)

func GetFloatOr

func GetFloatOr(key string, defaultValue float64) (float64, error)

func GetInt

func GetInt(key string) (int, error)

func GetIntOr

func GetIntOr(key string, defaultValue int) (int, error)

func GetIntOrDefault

func GetIntOrDefault(key string, defaultValue int) int

func GetList

func GetList(key string, separator string) ([]string, error)

func GetListOr

func GetListOr(key string, separator string, defaultValue []string) []string

func GetOr

func GetOr(key string, defaultValue string) string

func IsSet

func IsSet(key string) bool

func IsSetAndNotEmpty

func IsSetAndNotEmpty(key string) bool

func ParseBool

func ParseBool(value string) (bool, error)

func Set

func Set(key string, value string) error

func SplitAndTrim

func SplitAndTrim(value string, separator string) []string

func Unset

func Unset(key string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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