packagepath

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package packagepath provides metadata operations on package path strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanImport

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

func IsStdPackage(path string) bool

IsStdPackage reports whether the specified package path belongs to a package in the standard library (including internal dependencies).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL