Awesome Open Source
Awesome Open Source

iploc - fastest ip country library

godoc release goreport coverage

Getting Started

try on

package main

import (

func main() {
	fmt.Printf("%s", iploc.Country(net.IP{1,1,1,1}))

// Output: US

Command Tool

$ go get
$ iploc 2001:4860:4860::8888


BenchmarkCountryForIPv4-8   	20.8 ns/op	       0 B/op	       0 allocs/op
BenchmarkCountryForIPv6-8   	38.2 ns/op	       0 B/op	       0 allocs/op


This site or product includes IP2Location LITE data available from

How often are the database(iploc_db.go) updated?

Following IP2Location Lite Database, usually monthly.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
go (14,899
geolocation (103
geoip (36