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: movie_repository.go
    path of file: ./repos/iris/_examples/mvc/repository/repositories
    
    the code of the file until where you have to start completion: // file: repositories/movie_repository.go

package repositories

import (
	"errors"
	"sync"

	"github.com/kataras/iris/v12/_examples/mvc/repository/datamodels"
)

// Query represents the visitor and action queries.
type Query func(datamodels.Movie) bool

// Movi
    
func (r *movieMemoryRepository) Select(query Query) (movie datamodels.Movie, found bool) {
	found = r.Exec(query, func(m datamodels.Movie) bool {
		movie = m
		return true
	}, 1, ReadOnlyMode)

	// set an empty datamodels.Movie if not found at all.
	if !found {
		movie = datamodels.Movie{}
	}

	return
}