Registry /
networking / libp2p-go-libp2p-asn-util
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
asnutil
✓ github.com/libp2p/go-libp2p-asn-util
Look up the ASN for an IPv6 address.
package main
import (
"fmt"
"github.com/libp2p/go-libp2p-asn-util"
)
func main() {
asn, err := asnutil.ASNForIPv6(net.ParseIP("2001:db8::1"))
fmt.Println(asn, err)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.4.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.