env

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(value string, fallback bool) bool

GetBool converts the given value to the bool type and returns that value, or returns the specified fallback value if the value is empty.

func GetInt

func GetInt(value string, fallback int) int

GetInt converts the given value to the integer type and returns that value, or returns the specified fallback value if the value is empty.

func GetNegativeBool

func GetNegativeBool(value string, fallback bool) bool

GetNegativeBool converts the given value to the bool type and returns the inverted value, or returns the specified fallback value if the value is empty.

func GetString

func GetString(value string, fallback string) string

GetString returns the same string value, or returns the given fallback value if the value is empty.

func Parse

func Parse(envs []string) map[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