Documentation ¶ Index ¶ func Close() func LookupIP(ip string) (countryCode string, cityName string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Close ¶ func Close() Close closes the GeoIP database. Only call this on application shutdown. func LookupIP ¶ func LookupIP(ip string) (countryCode string, cityName string) LookupIP performs a GeoIP lookup for an IP address. Returns country code and city name, or empty strings if not found/error. Safe to call concurrently from multiple goroutines. Types ¶ This section is empty. Source Files ¶ View all Source files lookup.go Click to show internal directories. Click to hide internal directories.