Releases: xgfone/go-netaddr
Releases · xgfone/go-netaddr
v0.6.0
- Rename module name from
netaddr
to go-netaddr
.
v0.5.1
- 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
- Changed:
NewIPAddress
supports the integer types int
, int64
, uint
, uint32
, uint64
as ipv4 by default.
v0.4.1
- Fix: use the independent initializing function instead of
init
.
v0.4.0
- Add the method
Compare
for IPAddress
.
- Cache the first and last IPAddress for IPNetwork.
- Optimize
IPAddress
and IPNetwork
.
v0.3.0
- Add the method
Hex
, Add
, Sub
for IPAddress
.
v0.2.2
- Fix:
NewIPNetwork(ipnet)
panics when ipnet
has no mask.
v0.2.1
- Fix:
IPNetwork.Network()
should return IPAddress
, not IPNetwork
.
v0.2.0
- 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
- Support
IPAddress
and IPNetwork
.