code: func checkDuplicateRoutes(idx int, route *Route, routes []*Route) {
  	// checking if the URI pattern is duplicated
  	for i := 0; i < idx; i++ {
  		rt := routes[i]
  
  		if rt.Name == route.Name {
  			LOGHANDLER.Warn("Duplicate route name(\"" + rt.Name + "\") detected. Route name should be unique.")
  		}
  
  		if rt.Method == route.Method {
  			// regex pattern match
  			if ok, _ := rt.matchAndGet(route.Pattern); ok {
  				LOGHANDLER.Warn("Duplicate URI pattern detected.\nPattern: '" + rt.Pattern + "'\nDuplicate pattern: '" + route.Pattern + "'")
  				LOGHANDLER.Info("Only the first route to match the URI pattern would handle the request")
  			}
  		}
  	}
  }
docs: // checkDuplicateRoutes checks if any of the routes have duplicate name or URI pattern