What's new in v2
mainVersion 2.0 introduced several improvements over v1:
- Performance: 56% fewer allocations and 34% less memory usage.
- Modern API: Uses
netip.Addrinstead ofnet.IPfor improved performance. - Network Information: All result structs now include
NetworkandIPAddressfields. - Data Validation: A new
HasData()method is available on result structs to check if data was found. - Structured Names: Replaced
map[string]stringwith a typedNamesstruct for better performance.