We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 564c0e9 commit c0ab013Copy full SHA for c0ab013
go/packages/packages.go
@@ -428,6 +428,10 @@ type Package struct {
428
// The NeedTypes LoadMode bit sets this field for packages matching the
429
// patterns; type information for dependencies may be missing or incomplete,
430
// unless NeedDeps and NeedImports are also set.
431
+ //
432
+ // Each call to [Load] returns a consistent set of type
433
+ // symbols, as defined by the comment at [types.Identical].
434
+ // Avoid mixing type information from two or more calls to [Load].
435
Types *types.Package
436
437
// Fset provides position information for Types, TypesInfo, and Syntax.
0 commit comments