title: mux is having empty parameters in the url
body: <p>I have this main:</p>
  <pre><code>func main() {
      r := _routerprovider.GetRouter()
      srv := &amp;http.Server{
          Handler:      r,
          Addr:         &quot;127.0.0.1:8000&quot;,
          WriteTimeout: 60 * time.Second,
          ReadTimeout:  15 * time.Second,
      }
      fmt.Println(&quot;Running in port 8000!&quot;)
      err := srv.ListenAndServe()
      if err != nil {
          log.Fatalln(err.Error())
      }
  }
  </code></pre>
  <p>And this is router:</p>
  <pre><code>func (h HandlerProvider) GetRouter() *mux.Router {
      r := mux.NewRouter()
      r.HandleFunc(&quot;/health&quot;, Health).Methods(&quot;GET&quot;)
      r.HandleFunc(&quot;/users&quot;, GetUsers).Methods(&quot;GET&quot;)
      r.HandleFunc(&quot;/users&quot;, CreateUser).Methods(&quot;POST&quot;)
      r.HandleFunc(&quot;/people&quot;, GetPeople).Methods(&quot;GET&quot;)
      r.HandleFunc(&quot;/peoplebyid&quot;, GetPeopleByID).Methods(&quot;GET&quot;)
      return r
  }
  </code></pre>
  <p>No matter what I do, mux.Vars always returns an empty map. What am I doing wrong?
  This is a sample handler:</p>
  <pre><code>func GetPeopleByID(w http.ResponseWriter, r *http.Request) {
      params := mux.Vars(r)
      id, ok := params[&quot;id&quot;]
      if !ok {
          ErrorHandler(w, r, fmt.Errorf(&quot;Error!&quot;), 400)
          return
      }
      idasnumber, err := strconv.Atoi(id)
      if err != nil {
          ErrorHandler(w, r, fmt.Errorf(&quot;Error!&quot;), 400)
          return
      }
      value, ok := services.PeopleDict[idasnumber]
  
      bs, _ := json.MarshalIndent(value, &quot;&quot;, &quot;  &quot;)
      w.Write(bs)
  }
  </code></pre>