env

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, def bool) bool

Bool retrieves a boolean (accepts 1/0 true/false yes/no on/off) or def.

func Float

func Float(key string, def float64) float64

Float retrieves a float64 or def.

func Int

func Int(key string, def int) int

Int retrieves an int from env or returns def if unset/invalid.

func Load

func Load(filename ...string)

Load loads variables from .env.local if the file exists. Load searches for filename (default ".env.local") upward and loads variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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