environment

package
v0.0.0-...-7862fbb Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package environment provides way to define and get environment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment int
const (
	PROD Environment = iota
	DEV  Environment = iota
)

func GetEnvironment

func GetEnvironment() Environment

GetEnvironment returns environment from env variable and fatals if it is different from PROD and DEV

Jump to

Keyboard shortcuts

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