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: find.go
    path of file: ./repos/clickvisual/api/internal/pkg/agent/search
    
    the code of the file until where you have to start completion: package search

import (
	"os"
	"path/filepa
    
func findFiles(searchDir string) []string {
	var arr []string
	_ = filepath.Walk(searchDir, func(path string, file os.FileInfo, _ error) error {
		// 如果是目录需要过滤
		if file.IsDir() {
			return nil
		}
		// todo 过滤后缀名，过滤路径
		arr = append(arr, path)
		return nil
	})

	return arr
}