in structmatcher/structmatcher.go [136:145]
func (m *Matcher) Match(actual interface{}) (success bool, err error) {
if m.includingFields != nil {
m.mismatches = StructMatcher(m.expected, actual, true, true, m.includingFields...)
} else if m.excludingFields != nil {
m.mismatches = StructMatcher(m.expected, actual, true, false, m.excludingFields...)
} else {
m.mismatches = StructMatcher(m.expected, actual, false, false)
}
return len(m.mismatches) == 0, nil
}