import "internal/goroot"
gc.go
func IsStandardPackage(readDir func(string) ([]os.DirEntry, error), goroot, compiler, path string) bool
IsStandardPackage reports whether path is a standard package, given goroot and compiler. readDir accepts OS filesystem paths.