Documentation ¶
Overview ¶
Package packages defines types for interpreting qualified names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultPackage has an empty package name. DefaultPackage = NewPackage("") )
Functions ¶
Types ¶
type Packager ¶
type Packager interface { // Package returns the qualified package name of the packager. // // The package path may be a namespace, package, or type. Package() string // ResolveCandidateNames returns the list of possible qualified names // visible within the module in name resolution order. // // Name candidates are returned in order of most to least qualified in // order to ensure that shadowing names are encountered first. ResolveCandidateNames(name string) []string }
Packager helps interpret qualified names.
func NewPackage ¶
NewPackage creates a new Packager with the given qualified package name.
Click to show internal directories.
Click to hide internal directories.