envfile

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package envfile loads optional dotenv configuration before the application container reads environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(lite bool) error

Load reads ENV_FILE when it is set, on any build. Otherwise it only acts on Lite builds, loading .env.lite — first beside the running executable (the tarball layout), then the current working directory (the repo/dev layout). There is deliberately no .env fallback: a standard binary built in the repo root must never pick up Lite defaults, and on Lite builds .env.lite is the single source of file defaults, so a stray .env cannot flip Lite into the Redis/Asynq path or enable Langfuse tracing.

godotenv never overwrites a variable already present in the process environment, so deployment-level settings always win over files.

Missing default files are normal and ignored. An explicitly requested file, or a present file with invalid syntax, is reported to the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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