Closed lavalamp- closed 4 years ago
Do you have an example output? It's difficult to tell what this looks like offhand because of the interface{}
return just handing back the library object.
Do you have an example output? It's difficult to tell what this looks like offhand because of the
interface{}
return just handing back the library object.
I'll update to have an explicitly populated struct, similar to how geoip2.go
does.
Output of new changes:
chris@ubuntu:~/git/zannotate$ cat test.txt | ./main --geoasn --geoasn-database=geolite_asn.mmdb
{"ip":"8.8.8.8","geoasn":{"asn":15169,"asn_org":"GOOGLE"}}
{"geoasn":{"asn":13335,"asn_org":"CLOUDFLARENET"},"ip":"1.1.1.1"}
Done!
chris@ubuntu:~/git/zannotate$ cat test.txt | ./main --geoasn --geoasn-database=geolite_asn.mmdb
{"ip":"8.8.8.8","geoasn":{"asn":15169,"org":"GOOGLE"}}
{"ip":"1.1.1.1","geoasn":{"asn":13335,"org":"CLOUDFLARENET"}}
Hi there!
Thank you all so much for your work - I've been a long-time fan.
I added some functionality to parse / process the Geolite ASN database from MaxMind. Looks pretty straightforward and it works locally, but if you'd like me to add anything else just lmk!