Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePhone ¶
ParsePhone 将"1234567"这样的电话号码解析出国家代码等信息。mobile不能带"+"。 countryCode: 1 regionCode: CA, US等 nationalNumber (778) 778-7878
Types ¶
type Phone ¶ added in v1.0.1
type Phone struct {
CountryCode string `json:"country_code"` // 例如:1
RegionCode string `json:"region_code"` // 例如:ca, us
NationalNumber string `json:"national_number"` // 例如:(778) 778-7878
IsValidNumber bool `json:"is_valid_number"` // 是否有效的电话号码:true, false
}
Phone 带有国家码的电话信息
type Twilio ¶
func (*Twilio) SendSMSByTwilio ¶
https://www.twilio.com/blog/2017/09/send-text-messages-golang.html SendSMS 通过twilio发一个手机短信
Click to show internal directories.
Click to hide internal directories.