env

package
v0.0.0-...-2e2b736 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HomeDir string
)

Functions

func GetValueOrDefault

func GetValueOrDefault(key, defaultValue string) string

func GetValueOrDefaultBool

func GetValueOrDefaultBool(envKey string, defaultValue bool) bool

func GetValueOrDefaultDuration

func GetValueOrDefaultDuration(envKey string, defaultValue time.Duration) time.Duration

func GetValueOrDefaultInt

func GetValueOrDefaultInt(envKey string, defaultValue int) int

func GetValueOrDefaultLogLevel

func GetValueOrDefaultLogLevel(envKey string, defaultValue log.Level) log.Level

func GetValueOrDefaultString

func GetValueOrDefaultString(envKey, defaultValue string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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