package
0.0.0-20241028094438-325af03cc521
Repository: https://github.com/bishoptylaor/go-toolkit.git
Documentation: pkg.go.dev

# Packages

Package sync2 provides extra functionality along the same lines as sync.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetStandardPhone 返回标准手机号,支持加密.
NewFuture create a future.
No description provided by the author
ParsePhone 通用的手机号解析,以及检查 手机号格式为:国家区号-手机号 国家区号和手机号使用"-"进行分割 例如: 86-15000000000 没有-号的,按照86进行处理 */.
RegexpPhoneVerify* * @Description:手机号正则验证 * 支持验证的国家和地区有:{中国大陆-CN,中国香港-HK,中国澳门-MO,中国台湾-TW,阿联酋-UAE,澳大利亚-AU,东帝汶-TL,菲律宾-PH,韩国-KR * 加拿大-CA,柬埔寨-KH,老挝-LA,马来西亚-MY,美国-US,缅甸-MM,日本-JP,泰国-TH,文莱-BN,西班牙-ES,新加坡-SG,新西兰-NZ,印度尼西亚-ID * 英国-UK,越南-VN},不支持的一律返回false。 * 仅中国大陆手机号可不带区号。其余必须为+86-phone,0086-phone,86-phone这样的 * @param req{Phone:手机号,RegionCode:国家或地区缩写,如"CN","HK"} 注:RegionCode为空则遍历所有Region匹配校验 * @return PhoneVerifyRes{Ok:正确/错误,RegularPhone:规则化的手机号,AreaNumber:区号,Region:手机号所属国家或地区,RegionCode:国家或地区缩写} */.
RegularPhone* * @Description: 规则化手机号 * @param phone 必须是已通过正则校验的手机号,如+86-18812341919,0086-18812341919,86-18812341919,18812341919(仅限中国大陆可不带区号) * @return string 返回规则化的手机号,如86-18812341919,852-18812341919 */.
No description provided by the author
No description provided by the author
No description provided by the author
UCFirst 首写字母大写.
WaitAllFutures wait all futures done.
WorldPhone 获取带区号的手机号.
WorldPhoneFmt 输入的是一个可能不带区号,也可能带的号 返回一个规范的,肯定带着区号的表示.

# Variables

No description provided by the author
No description provided by the author

# Structs

Future safe goroutine.
No description provided by the author
PhoneVerifyReq 手机号验证请求.
PhoneVerifyRes 手机号验证结果.
No description provided by the author

# Type aliases

Func function of future.