envex

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvBool

func GetEnvBool(envVar string, defaultValue bool) bool

func GetEnvDuration

func GetEnvDuration(envVar string, defaultValue time.Duration) time.Duration

func GetEnvInt64

func GetEnvInt64(envVar string, base int, bitSize int, defaultValue int64) int64

func GetEnvString

func GetEnvString(envVar string, defaultValue string) string

func GetEnvTime

func GetEnvTime(envVar string, layout string, defaultValue time.Time) time.Time

func GetEnvUInt64

func GetEnvUInt64(envVar string, base int, bitSize int, defaultValue uint64) uint64

func SafeParseInt

func SafeParseInt(str string, base int, bitSize int, defaultValue int64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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