func (t *Trie) FindRoutesAndPathMatched(httpMethod, path string) ([]*Match, bool) {
	context := newFindContext()
	pathMatched := false
	matches := []*Match{}
	context.matchFunc = func(httpMethod, path string, node *node) {
		pathMatched = true
		if node.HttpMethodToRoute[httpMethod] != nil {
			// path and method match, found a route !
			matches = append(
				matches,
				&Match{
					Route:  node.HttpMethodToRoute[httpMethod],
					Params: context.paramsAsMap(),
				},
			)
		}
	}
	t.root.find(httpMethod, path, context)
	return matches, pathMatched
}
func (t *Trie) FindRoutesAndPathMatched(httpMethod, path string) ([]*Match, bool) {
	context := newFindContext()
	pathMatched := false
	matches := []*Match{}
	context.matchFunc = func(httpMethod, path string, node *node) {
		pathMatched = true
		if node.HttpMethodToRoute[httpMethod] != nil {
			
			matches = append(
				matches,
				&Match{
					Route:  node.HttpMethodToRoute[httpMethod],
					Params: context.paramsAsMap(),
				},
			)
		}
	}
	t.root.find(httpMethod, path, context)
	return matches, pathMatched
}
func ( t * Trie ) FindRoutesAndPathMatched ( httpMethod , path string ) ( [ ] * Match , bool ) { context := newFindContext ( ) pathMatched := false matches := [ ] * Match { } context . matchFunc = func ( httpMethod , path string , node * node ) { pathMatched = true if node . HttpMethodToRoute [ httpMethod ] != nil { // path and method match, found a route ! matches = append ( matches , & Match { Route : node . HttpMethodToRoute [ httpMethod ] , Params : context . paramsAsMap ( ) , } , ) } } t . root . find ( httpMethod , path , context ) return matches , pathMatched }
// Same as FindRoutes, but return in addition a boolean indicating if the path was matched.
// Useful to return 405
Same as FindRoutes but return in addition a boolean indicating if the path was matched . Useful to return 405