env

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, def ...bool) bool

Bool returns a bool from the environment

func Duration

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

Duration returns a time.Duration from the environment

func Float32

func Float32(key string, def ...float32) float32

Float32 returns a float32 from the environment

func Float64

func Float64(key string, def ...float64) float64

Float64 returns a float64 from the environment

func Get

func Get(key string, def ...string) string

Get gets an env value

func Int

func Int(key string, def ...int) int

Int returns a int from the environment

func Int64

func Int64(key string, def ...int64) int64

Int64 returns a int64 from the environment

func Time

func Time(key string, def ...time.Time) time.Time

Time returns a time.Time from the environment

func Uint64

func Uint64(key string, def ...uint64) uint64

Uint64 returns a uint64 from the environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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