envvar

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

Get is just a wrapper for os.Getenv

func GetOrDefault

func GetOrDefault(key string, defaultValue string) string

GetOrDefault returns the environment variable or the default if its not available

func GetOrPanic

func GetOrPanic(key string) string

GetOrPanic returns the environment variable or panics if its not available

Types

This section is empty.

Jump to

Keyboard shortcuts

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