An HTTP handler is a function with signature func(w http.ResponseWriter, r *http.Request). httptest.NewRecorder() captures what the handler writes so you can inspect it without starting a real server. Complete helloHandler to write Hello, Go! to the response.