Is it possible to pass Request value to another function?
import "net/http"
func main() {
http.HandleFunc("saySomething", Say)
}
func Say(responseW http.ResponseWriter, request *http.Request) {
name := getName(request) // passing request value to another function
}
func getName(request someType) string {
request.ParseForm()
return request.Form.Get("name")
}