var InternalObjectPrinterErr … var disallowedPackagePrefixes … var InternalObjectPreventer … func IsInternalObjectError(err error) bool { … } type illegalPackageSourceChecker … func (c *illegalPackageSourceChecker) IsForbidden(pkgPath string) bool { … }