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 ¶
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.