resolver

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: BSD-3-Clause, MIT Imports: 2 Imported by: 18 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPackageNotFound = errors.New("package not found")

ErrPackageNotFound means the package is not found

Functions

This section is empty.

Types

type DecoratorResolver added in v0.16.0

type DecoratorResolver interface {
	ResolveIdent(file *ast.File, parent ast.Node, parentField string, id *ast.Ident) (path string, err error)
}

DecoratorResolver resolves an identifier to a local or remote reference.

Returns path == "" if the node is not a local or remote reference (e.g. a field in a composite literal, the selector in a selector expression etc.).

Returns path == "" is the node is a local reference.

Returns path != "" is the node is a remote reference.

type RestorerResolver added in v0.16.0

type RestorerResolver interface {
	ResolvePackage(path string) (string, error)
}

RestorerResolver resolves a package path to a package name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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