config

package
v0.0.0-...-abb50dc Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Production  = "production"
	Test        = "test"
	E2E         = "e2e"
)

Application Environment name

Variables

View Source
var C config

C is config variable

Functions

func IsDev

func IsDev() bool

IsDev returns APP_ENV in development mode

func IsE2E

func IsE2E() bool

IsE2E returns APP_ENV in e2e mode

func IsProd

func IsProd() bool

IsProd returns APP_ENV in production mode

func IsTest

func IsTest() bool

IsTest returns APP_ENV in test mode

func ReadConfig

func ReadConfig(option ReadConfigOption)

ReadConfig configures config file

Types

type ReadConfigOption

type ReadConfigOption struct {
	AppEnv string
}

ReadConfigOption is a config option

Jump to

Keyboard shortcuts

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