Versions in this module Expand all Collapse all v1 v1.0.1 Jul 8, 2020 Changes in this version + const FieldCity + const FieldConnection + const FieldConnectionAsn + const FieldConnectionIsp + const FieldContinentCode + const FieldContinentName + const FieldCountryCode + const FieldCountryName + const FieldCurrency + const FieldCurrencyCode + const FieldCurrencyName + const FieldCurrencyPlural + const FieldCurrencySymbol + const FieldCurrencySymbolNative + const FieldHostname + const FieldIp + const FieldLatitude + const FieldLocation + const FieldLocationCallingCode + const FieldLocationCapital + const FieldLocationCountryFlag + const FieldLocationCountryFlagEmoji + const FieldLocationCountryFlagEmojiUnicode + const FieldLocationGeonameId + const FieldLocationIsEu + const FieldLocationLanguages + const FieldLocationLanguagesCode + const FieldLocationLanguagesName + const FieldLocationLanguagesNative + const FieldLongitude + const FieldRegionCode + const FieldRegionName + const FieldSecurity + const FieldSecurityCrawlerName + const FieldSecurityCrawlerType + const FieldSecurityIsCrawler + const FieldSecurityIsProxy + const FieldSecurityIsTor + const FieldSecurityProxyType + const FieldSecurityThreatLevel + const FieldSecurityThreatTypes + const FieldTimeZone + const FieldTimeZoneCode + const FieldTimeZoneCurrentTime + const FieldTimeZoneGmtOffset + const FieldTimeZoneId + const FieldTimeZoneIsDaylightSaving + const FieldType + const FieldZip + func APIError(e error) *tError + func Init(params ...interface{}) error + func ParamDisableFirstMeCall() tClientParam + func ParamEnableSecurity(is bool) tClientParam + func ParamFields(fields ...string) tClientParam + func ParamToken(token string) tClientParam + func ParamUseHTTPS(is bool) tClientParam + func R() *tRequest + type Client struct + var DefaultClient *Client + func New(params ...interface{}) (*Client, error) + func (c *Client) IP(ip string) (*Response, error) + func (c *Client) IPs(ips ...string) ([]*Response, error) + func (c *Client) Me(forceFetch ...bool) (*Response, error) + func (c *Client) R() *tRequest + type Response struct + City string + Connection *tResponseConnection + ContinentCode string + ContinentName string + CountryCode string + CountryName string + Currency *tResponseCurrency + Hostname string + IP string + Latitide float32 + Location *tResponseLoc + Longitude float32 + RegionCode string + RegionName string + Security *tResponseSecurity + Timezone *tResponseTimeZone + Type string + Zip string + func IP(ip string) (*Response, error) + func IPs(ips ...string) ([]*Response, error) + func Me(forceFetch ...bool) (*Response, error)