Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/gotify/server
/ updateGinMode
Function
updateGinMode
mode/mode.go:32–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
}
31
32
func
updateGinMode() {
33
switch
Get() {
34
case
Dev:
35
gin.SetMode(gin.DebugMode)
36
case
TestDev:
37
gin.SetMode(gin.TestMode)
38
case
Prod:
39
gin.SetMode(gin.ReleaseMode)
40
default:
41
panic(
"unknown mode"
)
42
}
43
}
Callers
1
Set
Function · 0.85
Calls
1
Get
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…