envloader

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnvFile = "prod.env"

DefaultEnvFile determines what file contains the the default env values

View Source
var DefaultStageValue = "prod"

DefaultStageValue sets what stage to use when it is not set

View Source
var StageEnv = "ENV"

StageEnv is the name of the environment variable that determines the stage the app is running on

Functions

func LoadEnvs

func LoadEnvs(folderPath string) error

LoadEnvs checks if all envs are set and loads envs from the .env files into process envs If envs are missing an error is returned that contains the names of all missing envs

Types

This section is empty.

Jump to

Keyboard shortcuts

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