Releases: AdguardTeam/golibs
Releases · AdguardTeam/golibs
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
Changed
netutil.PrefixFromReversedAddr
now returns empty prefix of the corresponding IP family forin-addr.arpa
andip6.arpa
domains.netutil.ExtractReversedAddr
now returns empty prefix of the corresponding IP family for subdomains ofin-addr.arpa
andip6.arpa
domains.
Fixed
- Panic in
netutil.IPFromReversedAddr
when trying to parse IPv6 address within thein-addr.arpa
domain, e.g.1234::abcd.in-addr.arpa
.
v0.21.0
Added
Changed
mapsutil.OrderedRange
andmapsutil.OrderedRangeError
are nowmapsutil.SortedRange
andmapsutil.SortedRangeError
.
Removed
-
stringutil.AllUnique
. -
stringutil.Clone
: useslices.Clone
instead. -
stringutil.InSlice
: useslices.Contains
instead. -
stringutil.Set
: usecontainer.MapSet
instead.
v0.20.4
Added
- The
netutil.ExtractReversedAddr
function. - The
netutil.PreferIPv4
andnetutil.PreferIPv6
comparison functions.
v0.20.3
Added
v0.20.2
Added
- New type
ioutil.TruncatedWriter
.
v0.20.1
Changed
- On macOS, the
hostsfile.DefaultHostsPaths
function now returns theprivate/etc/hosts
directory instead of theetc/hosts
, which is an alias for theprivate/etc/hosts
on Darwin-based systems.