Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DevelopmentEnv is the name of the environment variable used to mark the running mode of the application DevelopmentEnv = "GO_ENV" // WorkingPathEnv is the name of the environment variable used to mark the directory where the application runs WorkingPathEnv = "GO_WORKING_PATH" // DEV is a development pattern markup constant DEV = "development" // TESTING is a testing pattern markup constant TESTING = "testing" // PROD is a production pattern markup constant PROD = "production" )
Variables ¶
This section is empty.
Functions ¶
func Development ¶
func Development() bool
Development determines whether or not it is currently in development mode GO_ENV = development
func Production ¶
func Production() bool
Production determines whether or not it is currently in production mode GO_ENV != testing && GO_ENV != development
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.