env

package
v1.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

Get fetch the env var or an empty string if not set

func GetDefault

func GetDefault(key string, defaultValue string) string

GetDefault fetch the env var or an defaultValue if not set

func LoadDotEnv

func LoadDotEnv()

LoadDotEnv load .env files in the following order: .env, .env.local, .env.$APP_ENV, .env.$APP_ENV.local If there is a problem loading any .env file, it will just be ignored TODO: check for required values

Types

This section is empty.

Jump to

Keyboard shortcuts

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