Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvNamePrefix = "TGC_" // Tron-Go-Common EnvNamePrefixEnv = "TGC_PREFIX" // Env var to override "TGC_" EnvDev = "dev" EnvStaging = "staging" EnvProd = "production" )
Variables ¶
View Source
var (
LogFile = ""
)
Functions ¶
func GetCurrentEnv ¶
func GetCurrentEnv() string
func GetEnv ¶
GetEnv checks the prefix settings and returns the correct application- specific environment variable value
func SetCurrentEnv ¶
func SetCurrentEnv(env string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.