github AdguardTeam/golibs v0.11.0

latest releases: v0.35.13, v0.35.12, v0.35.11...
3 years ago

Added

  • The netutil.AddrFamily type.

  • netutil.IPv4Localhost and netutil.IPv6Localhost returning corresponding netip.Addr values.

  • netutil.ZeroPrefix returning an empty subnet for the specified protocol version.

  • netutil.IPToAddr and netutil.IPToAddrNoMapped for conversion from net.IP to netip.Addr.

  • netutil.IPNetToPrefix and netutil.IPNetToPrefixNoMapped for conversion from net.IPNet to netip.Prefix.

Changed

  • Go version has been updated to Go 1.18.

Deprecated

  • netutil.CloneMAC, netutil.CloneIP, netutil.IPMap, netutil.IPPort.

Don't miss a new golibs release

NewReleases is sending notifications on new releases.