package
0.0.0-20220218190644-4958d6d39439
Repository: https://github.com/jhump/golang-x-tools.git
Documentation: pkg.go.dev
# Functions
BExportData returns binary export data for pkg.
BImportData imports a package from the serialized package data and returns the number of bytes consumed and a reference to the package.
FindExportData positions the reader r at the beginning of the export data section of an underlying GC-created object/archive file by reading from it.
FindPkg returns the filename and unique package id for an import path based on package information provided by build.Import (using the build.Default build.Context).
IExportBundle writes an indexed export bundle for pkgs to out.
IExportData writes indexed export data for pkg to out.
IImportBundle imports a set of packages from the serialized package bundle.
IImportData imports a package from the serialized package data and returns 0 and a reference to the package.
Import imports a gc-generated package given its import path and srcDir, adds the corresponding package object to the packages map, and returns the object.
ImportData imports a package by reading the gc-generated export data, adds the corresponding package object to the packages map indexed by id, and returns the object.