env

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, fallback bool) bool

Bool looks up for boolean env variables and returns it. This returns false if the key is not found or the value if non-boolean

func Float

func Float(key string, fallback float64) float64

Float looks up for a float64 env variables and returns it.

func Int

func Int(key string, fallback int) int

Int looks up for a integer env variables and returns it.

func String

func String(key, fallback string) string

String looks up for a string env variables and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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