title: Gorilla MUX routing with similar paths
body: <p>I'm using Gorilla mux in my golang api for routing. I have two paths that are similar: <code>/users/{id}</code> and <code>/users/settings</code>. When I make a call to the /users/settings endpoint, it is getting routed to the endpoint <code>/users/{id}</code>. How do I fix this?</p>
  <pre><code>router := mux.NewRouter()
  router.HandleFunc(&quot;/users/{id}&quot;, usersController.GetUserDetail).Methods(http.MethodGet)
  router.HandleFunc(&quot;/users/settings&quot;, usersController.GetSettings).Methods(http.MethodGet)
  </code></pre>