package location import "net/http" func location(w http.ResponseWriter, r *http.Request) { if r.Method == "POST" { addLocation(w, r) } } func addLocation(w http.ResponseWriter, r *http.Request) { }