title: How to decode query parameter in golang
body: <p>i have parameter</p>
  
  <pre><code>id_user
  phone_number
  </code></pre>
  
  <p>I want to decode to my struct</p>
  
  <pre><code>type User struct{
       IDUser int `json:"id_user"`
       PhoneNumber string `json:"phone_number"`
  }
  </code></pre>
  
  <p>is it possible to decode into struct? I use gorilla schema. My Code:</p>
  
  <pre><code>func User(w http.ResponseWriter, r *http.Request){
    var decoder = schema.NewDecoder()
    var user User
    if err := r.ParseForm(); err != nil {
       fmt.Println(err)
    }
  
    err := decoder.Decode(&amp;user, r.PostForm)
    if err != nil {
       fmt.Println(err)
    }
    respBody, err := json.Marshal(user)
    w.Header().Set("Content-Type", "application/json")
    w.WriteHeader(http.StatusOK)
    w.Write(respBody)
  }
  </code></pre>
  
  <p>i input id_user = 1 and phone_number = qwerty. But the result is id_user = 0 and phone_number = "".</p>