code: func (r *router) MethodsFor(path string) []string {
  	methods := []string{}
  	for _, route := range r.getRoutes() {
  		matches := route.regex.FindStringSubmatch(path)
  		if len(matches) > 0 && matches[0] == path && !hasMethod(methods, route.method) {
  			methods = append(methods, route.method)
  		}
  	}
  	return methods
  }
docs: // MethodsFor returns all methods available for path