go/src/cmd/go/internal/imports/scan.go

func ScanDir(dir string, tags map[string]bool) ([]string, []string, error) {}

func ScanFiles(files []string, tags map[string]bool) ([]string, []string, error) {}

func scanFiles(files []string, tags map[string]bool, explicitFiles bool) ([]string, []string, error) {}

var ErrNoGo

func keys(m map[string]bool) []string {}