Skip to content

feat!: replace net.IP and net.IPNet with netip.Addr and netip.Prefix #914

Description

@jooola

TL;DR

The https://pkg.go.dev/net/netip package is a newer and better implementation of the net.IP and net.IPNet features.

Expected behavior

The hcloud-go package to provide the best implementation for manipulating IPs and Subnets to its users.

A helper method could be introduced to compute legacy net.IP and net.IPNet types and if possible provide go inline fixes to easily upgrade.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions