turbobytes / geoipdb

GeoIP related related helper functions for TurboBytes stack
MIT License
0 stars 2 forks source link

Look for non-cgo alternative to geoip #10

Open sajal opened 7 years ago

sajal commented 7 years ago

github.com/abh/geoip uses C bindings for maxmind. We should try and find a pure go replacement that performs well. Having cgo dependency makes cross compilation difficult. If we can find one, then we can move islocalip into this lib as mentioned in #8

coolparadox commented 7 years ago

MaxMind site mentions an unofficial Go api for the new GeoIP2 format: https://github.com/oschwald/geoip2-golang

(Haven't check if it requires cgo yet)

sajal commented 7 years ago

+1 Appears to not use cgo. I skimmed over the source, as well as source of https://github.com/oschwald/maxminddb-golang which geoip2-golang uses and dont see any reference to any C library.