type MatchErrorMatcher … func (matcher *MatchErrorMatcher) Match(actual any) (success bool, err error) { … } func (matcher *MatchErrorMatcher) FailureMessage(actual interface{ … } func (matcher *MatchErrorMatcher) NegatedFailureMessage(actual interface{ … }