env

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 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

func MustStringSlice

func MustStringSlice(key string, fallback []string) []string

MustStringSlice uses MustString and parses it into a slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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