env

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package env reads environment variables with fallback defaults. A variable that is unset, empty, or fails to parse yields the fallback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, fallback bool) bool

Bool parses key as a bool, returning fallback on empty or parse error.

func Int

func Int(key string, fallback int) int

Int parses key as an int, returning fallback on empty or parse error.

func Int64

func Int64(key string, fallback int64) int64

Int64 parses key as an int64, returning fallback on empty or parse error.

func String

func String(key, fallback string) string

String returns the value of key, or fallback if unset or empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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