Documentation
¶
Overview ¶
Command genexportdata extracts the compiler's export data for a set of packages into a directory tree keyed by import path.
internal/packages reads the result through WithExportData (codescan.Options.ExportData): pre-digested types, so a scan never has to parse or type-check those packages. It is generated here, natively, because producing it needs the toolchain — which is precisely what the consumer does not have.
go run ./hack/genexportdata -out ./exportdata std go run ./hack/genexportdata -dir hack/genexportdata/bundle -out bundle.zip std ./...
The bundle module names what the published archive covers; see hack/genexportdata/bundle.
The output is valid only for the toolchain that produced it. Export data format is tied to the Go release, so regenerate it whenever the supported toolchain moves.
Click to show internal directories.
Click to hide internal directories.