code: func ImportDir(dir string, mode build.ImportMode, installSuffix string, buildTags []string) (*PackageData, error) {
  	bctx := NewBuildContext(installSuffix, buildTags)
  	pkg, err := bctx.ImportDir(dir, mode)
  	if err != nil {
  		return nil, err
  	}
  
  	jsFiles, err := jsFilesFromDir(bctx, pkg.Dir)
  	if err != nil {
  		return nil, err
  	}
  
  	return &PackageData{Package: pkg, JSFiles: jsFiles}, nil
  }
docs: // ImportDir is like Import but processes the Go package found in the named
  // directory.