(method string)
| 50 | type methodTrees []methodTree |
| 51 | |
| 52 | func (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 | |
| 61 | func longestCommonPrefix(a, b string) int { |
| 62 | i := 0 |
no outgoing calls