type HaveHTTPBodyMatcher … func (matcher *HaveHTTPBodyMatcher) Match(actual interface{ … } func (matcher *HaveHTTPBodyMatcher) FailureMessage(actual interface{ … } func (matcher *HaveHTTPBodyMatcher) NegatedFailureMessage(actual interface{ … } // body returns the body. It is cached because once we read it in Match() // the Reader is closed and it is not readable again in FailureMessage() // or NegatedFailureMessage() func (matcher *HaveHTTPBodyMatcher) body(actual interface{ … }