package
0.0.0-20190318102628-d7df357d3e99
Repository: https://github.com/go-zh/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).
IExportData returns the binary export data for pkg.
IImportData imports a package from the serialized package data and returns the number of bytes consumed 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.