Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var ErrNoGo = fmt.Errorf("no Go source files") + var KnownArch = map[string]bool + var KnownOS = map[string]bool + func AnyTags() map[string]bool + func MatchFile(name string, tags map[string]bool) bool + func ReadComments(f io.Reader) ([]byte, error) + func ReadImports(f io.Reader, reportSyntaxError bool, imports *[]string) ([]byte, error) + func ScanDir(dir string, tags map[string]bool) ([]string, []string, error) + func ScanFiles(files []string, tags map[string]bool) ([]string, []string, error) + func ShouldBuild(content []byte, tags map[string]bool) bool + func Tags() map[string]bool