// Index constructs a serializable index of outbound cross-references // for the specified type-checked package. func Index(files []*parsego.File, pkg *types.Package, info *types.Info) []byte { … } // Lookup searches a serialized index produced by an indexPackage // operation on m, and returns the locations of all references from m // to any object in the target set. Each object is denoted by a pair // of (package path, object path). func Lookup(mp *metadata.Package, data []byte, targets map[metadata.PackagePath]map[objectpath.Path]struct{ … } var packageCodec … type gobPackage … type gobObject … type gobRef …