env

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string, defaultValue bool) bool

GetBool returns the value of the environment variable key as a bool or defaultValue if it does not exist

func GetInt

func GetInt(key string, defaultValue int) int

GetInt returns the value of the environment variable key as an int or defaultValue if it does not exist

func GetString

func GetString(key, defaultValue string) string

GetString returns the value of the environment variable key or defaultValue if it does not exist

func GetStringSlice

func GetStringSlice(key, defaultValue string) []string

GetStringSlice returns the value of the environment variable key as a slice of strings or defaultValue if it does not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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