Documentation
¶
Index ¶
Constants ¶
View Source
const ( Province int = 1 City int = 2 )
Variables ¶
View Source
var DistrictMapping = map[int]District{}/* 377 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type District ¶
type District struct {
Level int
AdCode int
Name string
FullName string
TelCode string
Postcode string
}
func (*District) GetProvince ¶
func (*District) IsDirectCity ¶
func (*District) IsProvince ¶
type PhoneLoc ¶
type PhoneLoc struct {
Section int `json:"section"` // 号段
Prov string `json:"prov"` // 归属省
City string `json:"city"` // 归属城市
Adcode int `json:"adcode"` // 归属城市的行政区划代码
Postcode string `json:"postcode"` // 邮编
TelCode string `json:"telcode"` // 电话区号
Sp string `json:"sp"` // 运营商
Virtual bool `json:"virtual"` // 是否虚拟号段
}
Click to show internal directories.
Click to hide internal directories.