Documentation ¶
Overview ¶
Package geo provides geolocation functions.
Index ¶
Constants ¶
View Source
const (
// DefaultCacheSize determines the default size for the ip cache
DefaultCacheSize = 100000
)
Variables ¶
This section is empty.
Functions ¶
func COUNTRY_CODE ¶
COUNTRY_CODE returns the 2 digit ISO country code for the ip, e.g. "US"
func Init ¶
Init initializes the Geolocation subsystem, storing the database file at the given dbFile location. It will periodically fetch updates from the maxmind website.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.