MCPcopy Index your code
hub / github.com/labstack/echo / findChildWithLabel

Method findChildWithLabel

router.go:715–726  ·  view source on GitHub ↗
(l byte)

Source from the content-addressed store, hash-verified

713}
714
715func (n *node) findChildWithLabel(l byte) *node {
716 if c := n.findStaticChild(l); c != nil {
717 return c
718 }
719 if l == paramLabel {
720 return n.paramChild
721 }
722 if l == anyLabel {
723 return n.anyChild
724 }
725 return nil
726}
727
728func (n *node) setHandler(method string, r *routeMethod) {
729 n.methods.set(method, r)

Callers 1

insertMethod · 0.80

Calls 1

findStaticChildMethod · 0.95

Tested by

no test coverage detected