Glossary: Software Design Patterns in Go
httptest
Also written: net/http/httptest, httptest.NewRecorder
A standard-library package for testing web handlers without a real network. It lets you send a fake request to a handler and read the recorded response.