Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.
- Repository: github.com/gin-gonic/gin
- Commit:
dcaa4296d111981ffb31ac3eba90bb63e1eb5ab9· HEAD up to date - Analyzed: 2026-08-19T22:47:17-03:00 (7.1s)
- Engine: local · go-crap 0.5.1
Trend
History
| Date | Commit | Combined | Average | Funcs | Exceeded | Engine |
|---|---|---|---|---|---|---|
| 2026-08-19 | dcaa429 | 1277.76 | 2.66 | 480 | 2 | local |
Top offenders
| Crap | Complexity | Coverage | Function | File |
|---|---|---|---|---|
| 65.52 | 61 | 89.3% | *node.findCaseInsensitivePathRec | tree.go:703 |
| 60.00 | 60 | 100.0% | *node.getValue | tree.go:418 |
| 27.00 | 27 | 100.0% | cleanPath | path.go:23 |
| 27.00 | 27 | 100.0% | setByForm | binding/form_mapping.go:245 |
| 25.00 | 25 | 100.0% | setWithProperType | binding/form_mapping.go:323 |
| 22.00 | 22 | 100.0% | *node.addRoute | tree.go:135 |
| 21.00 | 21 | 100.0% | *Engine.handleHTTPRequest | gin.go:690 |
| 17.00 | 17 | 100.0% | mapping | binding/form_mapping.go:84 |
| 14.00 | 14 | 100.0% | *node.insertChild | tree.go:288 |
| 14.00 | 14 | 100.0% | *Context.ClientIP | context.go:998 |