View definition

(*Program).ImportedPackage

Defined in github.com/golang/tools/go/ssa/create.go

Description

ImportedPackage returns the importable SSA Package whose import path is path, or nil if no such SSA package has been created.

Not all packages are importable. For example, no import declaration can resolve to the x_test package created by 'go test' or the ad-hoc main package created 'go build foo.go'.