Skip to content

proposal: go/types: export term/termlist logic #50963

Closed
@bobg

Description

@bobg

I have been making https://github.com/bobg/modver generics-aware. This package can compare two versions of a Go module and tell whether a major, minor, or patchlevel version-number bump is needed, according to semver rules. (I previously wrote about this in #50646.)

In order to compare two interface types containing type unions, I found it necessary to duplicate some unexported logic from go/types. See my work in progress here: https://github.com/bobg/modver/blob/go1.18/term.go

It would be useful, and simple, to export those functions, adding them to the go/types API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions