Skip to content

proposal: net: reconsider representation of IP #18804

Closed
@bradfitz

Description

@bradfitz

A net.IP is currently a []byte, which has the bad properties of:

  • being mutable
  • not being able to be a map key
  • being large (the 24 byte slice header on 64-bit machines is bigger by itself than a 16 byte IPv6 address)

Reconsider for Go 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Proposalv2An incompatible library change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions