Closed as not planned
Description
Core types is a first-class concept in the Go Spec, which was introduced with type parameter support. go/types is the official package for tooling developers to interact with type information for Go programs, but it doesn't offer a public API to determine a core type. As a result, this logic has been reimplemented multiple times by independent parties [1, 2, 3], which isn't ideal for obvious maintenance reasons.
Proposal: Make the currently unexported coreType()
implementation in go/types
exported for everyone to use.
Metadata
Metadata
Assignees
Type
Projects
Status
Hold