MCPcopy
hub / github.com/gin-gonic/gin / countSections

Function countSections

tree.go:86–88  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

84}
85
86func countSections(path string) uint16 {
87 return safeUint16(strings.Count(path, "/"))
88}
89
90type nodeType uint8
91

Callers 1

addRouteMethod · 0.85

Calls 1

safeUint16Function · 0.85

Tested by

no test coverage detected