envx

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key, def string) string

Get reads a string env var; returns default if empty.

func GetBool

func GetBool(key string, def bool) bool

GetBool reads a bool env var; returns default on parse failure.

func GetDuration

func GetDuration(key string, def time.Duration) time.Duration

GetDuration reads a duration; supports time.ParseDuration and plain numbers (seconds).

func GetInt

func GetInt(key string, def int) int

GetInt reads an int env var; returns default on parse failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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