Skip to content

proposal: unsafe: Sizeof isn't unsafe and could be elsewhere #5602

@robpike

Description

@robpike
For Go 2, find a better package for unsafe.Sizeof and maybe unsafe.Alignof and
unsafe.Offsetof.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeLanguageChangeSuggested changes to the Go languageNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.v2An incompatible library change

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions