env

package
v0.0.0-...-4b4c67a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Types = [...]Type{
	PROD,
	QA,
	DEV,
	TEST,
}

Types represents the allowed types

Functions

func ValidType

func ValidType(typ Type) bool

Types

type Type

type Type string

Type is a local type alias for the environment types

const DEV Type = "dev"

DEV environment

const PROD Type = "prod"

PROD environment

const QA Type = "qa"

QA environment

const TEST Type = "test"

TEST environment

func ValidTypeOrDev

func ValidTypeOrDev(typ Type) Type

func (Type) IsDev

func (e Type) IsDev() bool

func (Type) IsProd

func (e Type) IsProd() bool

func (Type) IsQA

func (e Type) IsQA() bool

func (Type) IsTest

func (e Type) IsTest() bool

Jump to

Keyboard shortcuts

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