MCPcopy
hub / github.com/gotify/server / IsDev

Function IsDev

mode/mode.go:28–30  ·  view source on GitHub ↗

IsDev returns true if the current mode is dev mode.

()

Source from the content-addressed store, hash-verified

26
27// IsDev returns true if the current mode is dev mode.
28func IsDev() bool {
29 return Get() == Dev || Get() == TestDev
30}
31
32func updateGinMode() {
33 switch Get() {

Callers 5

CorsConfigFunction · 0.92
newUpgraderFunction · 0.92
TestDevModeFunction · 0.85
TestTestDevModeFunction · 0.85
TestProdModeFunction · 0.85

Calls 1

GetFunction · 0.70

Tested by 3

TestDevModeFunction · 0.68
TestTestDevModeFunction · 0.68
TestProdModeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…