Skip to content

Releases: AdguardTeam/golibs

v0.12.1

09 Mar 10:59
Compare
Choose a tag to compare

Added

  • errors.Join and errors.WrapperSlice for compatibility with Go 1.20.

v0.12.0

17 Feb 15:16
Compare
Choose a tag to compare

Added

Changed

v0.11.4

24 Jan 13:45
Compare
Choose a tag to compare

Added

  • Package mathutil.

v0.11.2

26 Oct 17:07
Compare
Choose a tag to compare

Changed

  • Relaxed the interface for the first argument of testutil.RequireReceive.

v0.11.1

26 Oct 16:46
Compare
Choose a tag to compare

Added

  • testutil.DiscardLogOutput.

  • testutl.RequireSend testutl.RequireReceive.

  • testutil.RequireTypeAssert

v0.11.0

24 Oct 12:18
Compare
Choose a tag to compare

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.

v0.10.9

26 May 11:54
Compare
Choose a tag to compare

Added

Changed

v0.10.8

17 Mar 16:23
Compare
Choose a tag to compare

Added

v0.10.7

21 Feb 11:15
Compare
Choose a tag to compare

Added

  • New testutil.PanicT helper that is useful in cases when standard test helpers aren't safe to use. See the example.

v0.10.6

15 Feb 18:01
Compare
Choose a tag to compare

Added

  • Function netutil.CloneIPNet that returns a deep clone of an IP network.