config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 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 SetupTest added in v1.0.6

func SetupTest()

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