Want curl effectively in your tests for Go? Try http.ReponseRecorder (in place of http.ResponseWriter) and you are set. All the stuff you are after is saved inside of it.
curl
http.ReponseRecorder
http.ResponseWriter