env

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(envName string) (string, error)

Get gets the value of the environment variable called envName. If that variable is not set, returns a non-nil error

func GetInt32Or

func GetInt32Or(envName string, otherwise int32) int32

GetInt32Or returns the int32 value of the environment variable called envName. If the environment variable is missing or it's not a valid int32, returns otherwise

func GetIntOr added in v0.1.0

func GetIntOr(envName string, otherwise int) int

func GetOr

func GetOr(envName, otherwise string) string

GetOr gets the value of the environment variable called envName. If that variable is not set, returns otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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