runtime

package
v0.0.0-...-d72b2cd Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DevEnv = iota
	ReviewEnv
	TestEnv
	StageEnv
	ProdEnv

	DevEnvValue    = "dev"
	ReviewEnvValue = "review"
	TestEnvValue   = "test"
	StageEnvValue  = "stage"
	ProdEnvValue   = "prod"
)
View Source
const (
	EnvVariableReference = "{env}"
)

Variables

This section is empty.

Functions

func EnvExpansion

func EnvExpansion(s string) string

EnvExpansion - expand a template with an environment variable reference

func GetRuntimeEnv

func GetRuntimeEnv() string

GetRuntimeEnv - function to get the runtime environment

func IsDevEnv

func IsDevEnv() bool

IsDevEnv - determine environment

func IsProdEnv

func IsProdEnv() bool

func IsReviewEnv

func IsReviewEnv() bool

func IsStageEnv

func IsStageEnv() bool

func IsTestEnv

func IsTestEnv() bool

func SetRuntimeEnv

func SetRuntimeEnv(s string)

SetRuntimeEnv - function to set the runtime environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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