func CanImport(from, to string) bool
CanImport reports whether one package is allowed to import another.
TODO(adonovan): allow customization of the accessibility relation (e.g. for Bazel).
func IsStdPackage(path string) bool
IsStdPackage reports whether the specified package path belongs to a package in the standard library (including internal dependencies).