env

package
v0.0.0-...-317d7e6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load loads an optional .env file

func MustBool

func MustBool(key string, fallback bool) bool

MustBool uses MustString and parses it into a boolean

func MustDuration

func MustDuration(key string, fallback time.Duration) time.Duration

MustDuration uses MustString and parses it into a duration

func MustInt

func MustInt(key string, fallback int) int

MustInt uses MustString and parses it into an integer

func MustString

func MustString(key, fallback string) string

MustString returns the content of the environment variable with the given key or the given fallback

Types

This section is empty.

Jump to

Keyboard shortcuts

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