Versions in this module Expand all Collapse all v1 v1.0.0 May 28, 2020 Changes in this version + const ContentTypeHTML + const ContentTypeJSON + const ContentTypePlain + func EncodeJSON(data interface{}) ([]byte, error) + func EncodeString(data interface{}) ([]byte, error) + type ExpectedResponse struct + Body interface{} + ResponseType contentType + StatusCode int + type HTTPTest struct + Encoder func(interface{}) ([]byte, error) + func (test *HTTPTest) CompareHTTPResponse(rr *httptest.ResponseRecorder, expected ExpectedResponse) + func (test *HTTPTest) CreateHTTPRequest(request Request) *http.Request + type Request struct + Body interface{} + Method string + URL string