envx

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package envx contains small environment-variable helpers used by service main packages. It exists to keep the bottom of every main.go from carrying its own `envOr` helper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Or

func Or(key, fallback string) string

Or returns os.Getenv(key) when it's non-empty, otherwise fallback. Use it for "give me PORT but default to 8080" kinds of reads.

Types

This section is empty.

Jump to

Keyboard shortcuts

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