Documentation ¶
Overview ¶
Package gmode provides release mode management for project.
It uses string to mark the mode instead of integer, which is convenient for configuration.
Index ¶
Constants ¶
View Source
const ( NOT_SET = "not-set" DEVELOP = "develop" TESTING = "testing" STAGING = "staging" PRODUCT = "product" )
Variables ¶
This section is empty.
Functions ¶
func IsDevelop ¶
func IsDevelop() bool
IsDevelop checks and returns whether current application is running in DEVELOP mode.
func IsProduct ¶
func IsProduct() bool
IsProduct checks and returns whether current application is running in PRODUCT mode.
func IsStaging ¶
func IsStaging() bool
IsStaging checks and returns whether current application is running in STAGING mode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.