MCPcopy Create free account
hub / github.com/LockGit/gochat / GetMode

Function GetMode

config/config.go:105–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func GetMode() string {
106 env := os.Getenv("RUN_MODE")
107 if env == "" {
108 env = "dev"
109 }
110 return env
111}
112
113func GetGinRunMode() string {
114 env := GetMode()

Callers 3

initDBFunction · 0.92
InitFunction · 0.85
GetGinRunModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected