env

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(name string, def time.Duration) time.Duration

Duration returns the duration value of an environment variable. The default value is returned if the environment variable is not set or could not be parsed as a valid duration.

func Integer

func Integer(name string, def int) int

Integer returns the integer value of an environment variable. The default value is returned if the environment variable is not set or could not be parsed as an integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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