Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
105
func
GetMode() string {
106
env := os.Getenv(
"RUN_MODE"
)
107
if
env ==
""
{
108
env =
"dev"
109
}
110
return
env
111
}
112
113
func
GetGinRunMode() string {
114
env := GetMode()
Callers
3
initDB
Function · 0.92
Init
Function · 0.85
GetGinRunMode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected