env

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDefaultBool added in v0.5.6

func WithDefaultBool(key string, def bool) bool

WithDefaultBool returns the boolean value of the supplied environment variable or, if not present, the supplied default value.

func WithDefaultInt

func WithDefaultInt(key string, def int) int

WithDefaultInt returns the int value of the supplied environment variable or, if not present, the supplied default value. If the int conversion fails, returns the default

func WithDefaultString

func WithDefaultString(key string, def string) string

WithDefaultString returns the string value of the supplied environment variable or, if not present, the supplied default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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