Skip to content

Question: go 1.26 newexpr replaces Ptr? #4121

@deiga

Description

@deiga

Hello 👋

With golang 1.26 release they modified how new() works and for example the modernize linter replaces github.Ptr with new.

Is that correct behaviour? Can Ptr be removed from use in go-github?

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