env

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv(opts *EnvOptions) error

LoadEnv loads environment variables based on the default .env file and the current environment. The loading order is: .env -> .env.local -> .env.<environment> -> .env.<environment>.local

Types

type EnvOptions

type EnvOptions struct {
	Path        string
	Environment string
	Local       bool
}

EnvOptions contains options for loading environment variables

Jump to

Keyboard shortcuts

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