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

Method get

tree.go:52–59  ·  view source on GitHub ↗
(method string)

Source from the content-addressed store, hash-verified

50type methodTrees []methodTree
51
52func (trees methodTrees) get(method string) *node {
53 for _, tree := range trees {
54 if tree.method == method {
55 return tree.root
56 }
57 }
58 return nil
59}
60
61func longestCommonPrefix(a, b string) int {
62 i := 0

Callers 2

addRouteMethod · 0.80
TestAddRouteFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAddRouteFunction · 0.64