package gopackages

Import Path
	go.pact.im/x/plumb/internal/gopackages (on go.dev)

Dependency Relation
	imports 6 packages, and imported by one package

Involved Source Files Package gopackages is the real package-loading boundary: it drives the Go toolchain's package loader to turn patterns into the typed packages the pure core consumes. It is deliberately thin and kept out of the core so the core stays a pure, deterministic function of already-loaded inputs.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Result is the outcome of loading. Packages []*discover.Package TypeErrors are non-fatal type-checking errors (e.g. a stale generated file). Parse errors are returned as the error result instead. func Load(patterns []string, dir string) (*Result, error)
Package-Level Functions (total 2, in which 1 is exported)
Load resolves and type-checks the packages matching patterns, rooted at dir. A structural failure is fatal: a broken module or missing package (reported by the go command), or a parse error that could hide a //plumb: directive. Everything else, notably a type error, is tolerated and collected in Result.TypeErrors: regenerating over a stale generated file whose old wiring no longer type-checks must still work, and an unresolved import surfaces precisely downstream as an invalid-type diagnostic if it reaches the generated output.
Package-Level Constants (only one, which is unexported)