appmode

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 1 Imported by: 7

README

appmode

A package that determines the application mode based on the env variable 'APP_MODE'.

Available modes

  1. production
  2. development
  3. test

Documentation

Index

Constants

View Source
const (
	EnvKey          = "APP_MODE"
	DevelopmentMode = "development"
	ProductionMode  = "production"
	TestMode        = "test"
)

Variables

This section is empty.

Functions

func Equals

func Equals(val string) bool

func Get

func Get() string

func Set

func Set(value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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