package gcimporter

import "go/internal/gcimporter"

Package gcimporter implements Import for gc-generated object files.

Index

Functions

func Import

func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error)

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. The packages map must contain all packages already imported.

Source Files

gcimporter.go support.go ureader.go

Version
v1.24.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
8 minutes ago

Tools for package owners.