View definition

func Import(packages map[string]*Package, path string, srcDir string) (pkg *Package, err error)

Defined in github.com/golang/go/src/go/internal/gcimporter/gcimporter.go

Description

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.