Skip to content

Releases: xgfone/go-netaddr

v0.6.0

01 Apr 12:50
Compare
Choose a tag to compare
  • Rename module name from netaddr to go-netaddr.

v0.5.1

17 Sep 14:21
Compare
Choose a tag to compare
  • Changed:
    • IPAddress.Hex() returns the hexadecimal of all the bytes of the ip address. For example, MustNewIPAddress("0.170.187.204").Hex() returns 00aabbcc instead of aabbcc.

v0.5.0

15 May 12:14
Compare
Choose a tag to compare
  • Changed:
    • NewIPAddress supports the integer types int, int64, uint, uint32, uint64 as ipv4 by default.

v0.4.1

21 Mar 10:37
Compare
Choose a tag to compare
  • Fix: use the independent initializing function instead of init.

v0.4.0

18 Feb 06:33
Compare
Choose a tag to compare
  • Add the method Compare for IPAddress.
  • Cache the first and last IPAddress for IPNetwork.
  • Optimize IPAddress and IPNetwork.

v0.3.0

18 Feb 06:31
Compare
Choose a tag to compare
  • Add the method Hex, Add, Sub for IPAddress.

v0.2.2

21 Jan 07:13
Compare
Choose a tag to compare
  • Fix: NewIPNetwork(ipnet) panics when ipnet has no mask.

v0.2.1

06 Jul 10:18
Compare
Choose a tag to compare
  • Fix: IPNetwork.Network() should return IPAddress, not IPNetwork.

v0.2.0

05 Jul 06:38
Compare
Choose a tag to compare
  • Add the method Binary() and Bits() for IPAddress.
  • For NewIPNetwork, if missing the subnet mask, it is 4 for ipv4 or 6 for ipv6 by default.
  • IPNetwork.Network() returns IPNetwork instead of IPAddress.

v0.1.0

05 Jun 08:02
Compare
Choose a tag to compare
  • Support IPAddress and IPNetwork.