package
Version:
v1.0.6
Opens a new window with list of versions in this module.
Published: Jan 11, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Enable loads the environment from the DOT_ENV environment variable
This will load the .env.development file or .env.development.local file in
the nearest confg directory
WithFlag is a helper function to load the environment from a flag
Usage: go run main.go --dot-env=development
This will load the .env.development file or .env.development.local file in
the nearest confg directory
Source Files
¶
Click to show internal directories.
Click to hide internal directories.