You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.