package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: May 23, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetClientIp returns the client IP address from the http.Request
GetCountryAndCity returns the city and continent of an IP address.
type IPInfo struct {
Query string `json:"query"`
Status string `json:"status"`
Continent string `json:"continent"`
Country string `json:"country"`
City string `json:"city"`
}
IPInfo contains information about an IP address.
GetIPInfo returns information about an IP address.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.