IsDebugging returns true if the framework is running in debug mode. Use SetMode(gin.ReleaseMode) to disable debug mode.
()
| 20 | // IsDebugging returns true if the framework is running in debug mode. |
| 21 | // Use SetMode(gin.ReleaseMode) to disable debug mode. |
| 22 | func IsDebugging() bool { |
| 23 | return atomic.LoadInt32(&ginMode) == debugCode |
| 24 | } |
| 25 | |
| 26 | // DebugPrintRouteFunc indicates debug log output format. |
| 27 | var DebugPrintRouteFunc func(httpMethod, absolutePath, handlerName string, nuHandlers int) |
no outgoing calls