3 ms·
It _is_ possible to use native OS APIs for location lookup, but these all seem to rely on cgo. Which was a bit intimidating for a "let's learn Golang" project
by zero_shift 2y ago
It _is_ possible to use native OS APIs for location lookup, but these all seem to rely on cgo. Which was a bit intimidating for a "let's learn Golang" project
(Probably not the nicest code and no doubt I've broken a lot of Go idioms, but it was a good learning exercise)
IPInfo is a good service and their developer relations were surprisingly relaxed about me (mis)using their API this way
- reincoder 2y ago"Surprisingly relaxed," you say. Let me tell you about the time our users reverse-engineered our apps, submitted 2.2 million IPs, and broke our systems for our hackathon. https://ipinfo.io/blog/ipinfos-ip-hunt-2-2-million-ips-submitted-over-3-weeks-2 https://ipinfo.io/blog/ipinfos-ip-hunt-2-2-million-ips-submi... This is just our user base, to be honest and we like them for their mindset. We are happy to see users try our service in different ways and we learn a ton from them in that process. I certainly learned from you :)