README ¶ IP Location The package serve method takes a location to a MaxMind GeoLite2 database found here: http://dev.maxmind.com/geoip/geoip2/geolite2/. The second parameter is the port to expose the TCP server on. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants func Serve(file string, port string) Constants ¶ View Source const ( CONN_HOST = "" CONN_TYPE = "tcp" ERR_INVALID_IP = 64 ERR_COUNTRY_CODE_NOT_FOUND = 128 ) Variables ¶ This section is empty. Functions ¶ func Serve ¶ func Serve(file string, port string) Types ¶ This section is empty. Source Files ¶ View all Source files ip-location.go Click to show internal directories. Click to hide internal directories.