I am new to go and still trying to figure out a few things.
func handler(w http.ResponseWriter, r *http.Request) {
}
Why is w
not a pointer and on the other hand r
is, since the handler function will end up writing into w
and only read from r
?