env

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 3 Imported by: 0

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