Documentation ¶
Index ¶
Constants ¶
View Source
const ( CITY = "https://suip.biz/?act=iploc" COUNTRY = "https://suip.biz/?act=iploc" ISP = "https://suip.biz/?act=ipintpr" )
API endpoints
View Source
const PRE = "//pre"
PRE is a <pre> HTML tag
Variables ¶
View Source
var ApiEndPoints = []string{ CITY, COUNTRY, ISP, }
ApiEndPoints is a slice of string constants representing API endpoints
View Source
var CountryCodes = []string{}/* 249 elements not displayed */
CountryCodes is a two-letter country codes
View Source
var ReqType = []string{
"city",
"country",
"isp",
}
ReqType is a possible types of request
Functions ¶
func ValidateCountry ¶
ValidateCountry checks if given country code is correct
Types ¶
type Goranger ¶
type Goranger struct {
EndPoint []string
}
Goranger is a main package's data type. EndPoint field may be one of the endpoint constants
Click to show internal directories.
Click to hide internal directories.