env

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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