Skip to content

x/example: replace references to x/tools/go/loader with x/tools/go/packages #60593

@adonovan

Description

@adonovan

The go/types tutorial at https://github.com/golang/example/tree/master/gotypes uses the old loader package in many examples. That package cannot handle modules correctly and is deprecated; all users should use go/packages instead. Let's update the doc to avoid steering people in the wrong direction.

See also #35872

Metadata

Metadata

Assignees

Labels

AnalysisIssues related to static analysis (vet, x/tools/go/analysis)DocumentationIssues describing a change to documentation.FrozenDueToAge

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions