Documentation
¶
Index ¶
Constants ¶
View Source
const UnknownAlpha2Code = "ZZ" // ZZ is the commonly recoginized country/continient code for unknown, as specified in ISO alpha2
View Source
const UnknownAlpha3Code = "ZZZ" // ZZZ is derived from "ZZ" to represent 3 letter country/continent code for unknown, as specified in ISO alpha3
Variables ¶
This section is empty.
Functions ¶
func CountryAlpha2CodeToAlpha3Code ¶
CountryAlpha2CodeToAlpha3Code - get a 3-letter country code if a country identified by 2-letter country code
func CountryAlpha3CodeToAlpha2Code ¶
CountryAlpha3CodeToAlpha2Code - get a 2-letter country code if a country identified by 3-letter country code
Types ¶
type Reader ¶
type Reader struct {
*geoip2.Reader
}
Reader - a thin wrapper which provides helper function to parse information provided by embedded geoip2.Reader
func NewMaxMind ¶
func (*Reader) BuildTimestamp ¶
BuildTimestamp - the timestamp when the MaxMind DB is built
func (*Reader) CountryByIPString ¶
Click to show internal directories.
Click to hide internal directories.