To create an HTTP handler in Go, you have to create a function that will take a writer and request as params. It always has to write to a writer to return a response.
func home(w http.ResponseWRiter, r *http.Request){
w.Write([]byte("..."))
} To create an HTTP handler in Go, you have to create a function that will take a writer and request as params. It always has to write to a writer to return a response.
func home(w http.ResponseWRiter, r *http.Request){
w.Write([]byte("..."))
}