envtools

package module
v0.0.0-...-7b57151 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 5 Imported by: 5

README

Tools for working with environment variables in Go

Go Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat64

func GetFloat64(key string) (float64, error)

func GetFloat64WithDefault

func GetFloat64WithDefault(key string, defaultVal float64) float64

func GetInt

func GetInt(key string) (int, error)

func GetInt64

func GetInt64(key string) (int64, error)

func GetInt64WithDefault

func GetInt64WithDefault(key string, defaultVal int64) int64

func GetIntWithDefault

func GetIntWithDefault(key string, defaultVal int) int

func IsSet

func IsSet(key string) bool

func IsTruthy

func IsTruthy(key string) bool

func MustGetFloat64

func MustGetFloat64(key string) float64

func MustGetInt

func MustGetInt(key string) int

func MustGetInt64

func MustGetInt64(key string) int64

func MustGetenv

func MustGetenv(key string) string

func MustGetenvInTest

func MustGetenvInTest(t testing.TB, key 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