package
0.18.1
Repository: https://go.googlesource.com/tools
Documentation: pkg.go.dev

# Functions

Decode decodes the given gob-encoded data as an Index.
EnsurePointer wraps T in a types.Pointer if T is a named, non-interface type.
KeyOf returns the search key for the method sets of a given type.
NewIndex returns a new index of method-set information for all package-level types in the specified package.

# Structs

An Index records the non-empty method sets of all package-level types in a package in a form that permits assignability queries without the type checker.
A Key represents the method set of a given type in a form suitable to pass to the (*Index).Search method of many different Indexes.
A Location records the extent of an identifier in byte-offset form.
A Result reports a matching type or method in a method-set search.