config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable()

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

func WithFlag added in v1.0.4

func WithFlag()

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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