ParseDir calls ParseFile for all files with names ending in ".go" in the directory specified by path and returns a map of package name -> package AST with all the packages found. If filter != nil, only the files with os.FileInfo entries passing through the filter (and ending in ".go") are considere
(fset *token.FileSet, path string, filter func(os.FileInfo) bool, mode Mode)