Skip to content

Releases: AdguardTeam/golibs

v0.10.4

18 Jan 10:39
Compare
Choose a tag to compare

Added

  • netutil.ValidateSRVDomainName and netutil.ValidateServiceNameLabel functions for validating domains which may contain service labels along with the netutil.MaxServiceLabelLen constant.

Fixed

  • Validation of port number in netutil.ParseIPPort.

v0.10.3

26 Oct 13:36
Compare
Choose a tag to compare

Added

  • netutil.ParseSubnet and netutil.SingleIPSubnet utility functions for dealing with IP subnetworks.

v0.10.2

13 Oct 16:29
Compare
Choose a tag to compare

Added

  • Package testutil containing common testing utilities.

v0.10.1

12 Oct 15:49
Compare
Choose a tag to compare

Added

  • netutil.IPMap.Clear method to efficiently clear the underlying map without deallocating its memory.

v0.10.0

30 Sep 16:31
Compare
Choose a tag to compare

Removed

  • The previously deprecated packages file and utils.

v0.9.3

16 Sep 17:35
Compare
Choose a tag to compare

Added

  • netutil.IPv4bcast, netutil.IPv4allsys, and netutil.IPv4allrouter functions.

  • netutil.Subdomains function, which returns all subdomains of a domain, starting from the domain itself.

  • stringutil.Set.Equal method, which returns true if two sets are equal.

  • stringutil.Set.Range method, which allows iterating over all elements of the set without allocating them using the Values method.

  • stringutil.AllUnique function, which returns true if all given strings are unique.

v0.9.2

19 Aug 17:47
Compare
Choose a tag to compare

Added

  • netutil.IPv4Zero, netutil.IPv6Zero, and netutil.ValidateIP functions.

v0.9.1

12 Aug 15:45
Compare
Choose a tag to compare

Added

  • stringutil.ContainsFold reports whehter a string contains another string, ignoring letter case.

v0.9.0

09 Aug 10:58
Compare
Choose a tag to compare

Breaking Changes

netutil

  • Error types refactored.
  • IPPortFromAddr is now IPAndPortFromAddr to make space for the new IPPort type.

utils and file

These packages are deprecated and will be removed in a future version.

v0.2.0

30 Aug 13:40
Compare
Choose a tag to compare

Added cache package