package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: May 8, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ipasn provides fast IP to ASN lookup using embedded binary data
generated from MaxMind GeoLite2-ASN.
Default builds embed raw binary data. Build with -tags ipasn_gzip to embed
gzipped data and decompress at init time.
ASN represents an autonomous-system record.
IPLookup returns the ASN for the given netip.Addr. Zero value if not found.
Lookup returns the ASN for the given net.IP. Zero value if not found.
Source Files
¶
Directories
¶
Command generate converts MaxMind GeoLite2-ASN.mmdb to ipasn binary format.
|
Command generate converts MaxMind GeoLite2-ASN.mmdb to ipasn binary format. |
Click to show internal directories.
Click to hide internal directories.