Versions in this module Expand all Collapse all v1 v1.1.2 Apr 26, 2017 Changes in this version + var DefaultGoPath = GoPath(filepath.SplitList(build.Default.GOPATH)) + var ErrNotInGoPath = fmt.Errorf("parseutil: package is not in any of the go paths") + type GoPath []string + func (gp GoPath) Abs(pkg string) (string, error) + func (gp GoPath) PathOf(pkg string) (string, error) v1.1.1 Apr 10, 2017 Changes in this version + func PackageTestAST(path string) (pkg *ast.Package, err error) type Importer + func (i *Importer) GetSourceFiles(path, srcDir string, filters FileFilters) (string, []string, error) + func (i *Importer) ParseSourceFiles(root string, paths []string) (*types.Package, error) v1.1.0 Mar 2, 2017 Changes in this version + var ErrTooManyPackages = errors.New("more than one package found in a directory") + func PackageAST(path string) (pkg *ast.Package, err error) + type FileFilter func(pkgPath, file string, typ FileType) bool + type FileFilters []FileFilter + func (fs FileFilters) Filter(pkgPath string, files []string, typ FileType) (filtered []string) + func (fs FileFilters) KeepFile(pkgPath, file string, typ FileType) bool + type FileType string + const CgoFile + const GoFile + type Importer struct + func NewImporter() *Importer + func (i *Importer) Import(path string) (*types.Package, error) + func (i *Importer) ImportFrom(path, srcDir string, mode types.ImportMode) (*types.Package, error) + func (i *Importer) ImportFromWithFilters(path, srcDir string, mode types.ImportMode, filters FileFilters) (*types.Package, error) + func (i *Importer) ImportWithFilters(path string, filters FileFilters) (*types.Package, error)