env

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package env provides functionality for loading .env files and setting environment variables. It supports variable expansion, comments, and quoted values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filenames ...string) error

Load loads .env files. If no filenames are provided, it defaults to ".env". Each file is loaded in turn, with later files overriding values from earlier ones. It parses key=value pairs, expands variables, and sets them as environment variables. Variables can reference other environment variables using ${VAR} or $VAR syntax.

Types

This section is empty.

Jump to

Keyboard shortcuts

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