type notARegularFileError … func (t notARegularFileError) Error() string { … } type BeARegularFileMatcher … func (matcher *BeARegularFileMatcher) Match(actual interface{ … } func (matcher *BeARegularFileMatcher) FailureMessage(actual interface{ … } func (matcher *BeARegularFileMatcher) NegatedFailureMessage(actual interface{ … }