Skip to content

Generate .pb.go files with any instead of interface{} #1685

Open
@snprajwal

Description

@snprajwal

Since Go 1.18, the any type is available to use in place of interface{}. The Go LSP (gopls) also raises a lint on instances of interface{} mentioning that it can be modernized to any (efaceany.go). Would we want to make protoc-gen-go use the any type going forward over the interface{} type? I'd be happy to contribute the PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions