Documentation
¶
Index ¶
Constants ¶
View Source
const ( CMCC ISP = iota + 0x01 //中国移动 CUCC //中国联通 CTCC //中国电信 CTCC_v //电信虚拟运营商 CUCC_v //联通虚拟运营商 CMCC_v //移动虚拟运营商 INT_LEN = 4 CHAR_LEN = 1 HEAD_LENGTH = 8 PHONE_INDEX_LENGTH = 9 PHONE_DAT = "phone.dat" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PhoneRecord ¶
type PhoneRecord struct {
PhoneNum string `json:"phone"`
Province string `json:"province"`
City string `json:"city"`
ZipCode string `json:"postcode"`
AreaCode string `json:"areacode"`
CardType ISP `json:"cardtype"`
}
func (PhoneRecord) String ¶
func (pr PhoneRecord) String() string
Click to show internal directories.
Click to hide internal directories.