You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: contains.go
    path of file: ./repos/DocHub/vendor/github.com/smartystreets/assertions/internal/oglematchers
    
    the code of the file until where you have to start completion: // Copyright 2012 Aaron Jacobs. All Rights Reserved.
// Author: aaronjjacobs@gmail.com (Aaron Jacobs)
//
// Licensed under the Apache License, Ve
    
func (m *containsMatcher) Matches(candidate interface{}) error {
	// The candidate must be a slice or an array.
	v := reflect.ValueOf(candidate)
	if v.Kind() != reflect.Slice && v.Kind() != reflect.Array {
		return NewFatalError("which is not a slice or array")
	}

	// Check each element.
	for i := 0; i < v.Len(); i++ {
		elem := v.Index(i)
		if matchErr := m.elementMatcher.Matches(elem.Interface()); matchErr == nil {
			return nil
		}
	}

	return fmt.Errorf("")
}