env

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(path string) map[string]string

ParseFile reads a single .env file and returns key-value pairs.

func ParseFiles

func ParseFiles(dir string) map[string]string

ParseFiles reads all .env files from a directory and merges them.

func Resolve

func Resolve(envVars map[string]string, val string) (string, error)

Resolve resolves a "env:VAR_NAME" reference using the provided env map, falling back to os.Getenv if not found in the map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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