genexportdata

command
v0.36.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL