geoip

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL