(l byte)
| 713 | } |
| 714 | |
| 715 | func (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 | |
| 728 | func (n *node) setHandler(method string, r *routeMethod) { |
| 729 | n.methods.set(method, r) |