title: How to extract the post arguments in go server
body: <p>Below is an server written in go.</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "net/http"
  )
  
  func handler(w http.ResponseWriter, r *http.Request) {
      fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
      fmt.Fprintf(w,"%s",r.Method)
  }
  
  func main() {
      http.HandleFunc("/", handler)
      http.ListenAndServe(":8080", nil)
  }
  </code></pre>
  
  <p>How can I extract the <code>POST</code> data sent to the <code>localhost:8080/something</code> URL?</p>