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.
ipisp
✓ github.com/ammario/ipisp/v2
Look up ASN information for an IP address.
package main
import (
"context"
"fmt"
"github.com/ammario/ipisp/v2"
)
func main() {
client := ipisp.NewClient(nil)
resp, err := client.LookupIP(context.Background(), "8.8.8.8")
if err != nil {
panic(err)
}
fmt.Printf("ASN: %d\n", resp.ASN)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.0.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.