Skip to content

proposal: go/types: Create a public CoreType() function #60994

Closed as not planned
@nevkontakte

Description

@nevkontakte

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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Hold

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions