env

package
v0.0.0-...-f06a132 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDevDirect

func IsDevDirect() bool

Check if dev environment directly from env var

Types

type EnvVars

type EnvVars struct {
	Dev bool
}

func InitEnvVars

func InitEnvVars() *EnvVars

func (*EnvVars) GetHttpProtocol

func (e *EnvVars) GetHttpProtocol() string

Return either http or https depending on whether environment is dev or prod

func (*EnvVars) IsDev

func (e *EnvVars) IsDev() bool

Jump to

Keyboard shortcuts

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