Documentation ¶ Index ¶ func Is11PhoneNum(numStr string) bool func IsIdCardNum(numStr string) bool func IsInteger(numStr string) bool func IsNonNeg(numStr string) bool func IsNonNegInt(numStr string) bool func IsPosInt(numStr string) bool func IsPosNum(numStr string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Is11PhoneNum ¶ func Is11PhoneNum(numStr string) bool 判断是否为11为手机号码 func IsIdCardNum ¶ func IsIdCardNum(numStr string) bool 判断是否为18位身份证号 func IsInteger ¶ func IsInteger(numStr string) bool 判断字符串是不是整数 func IsNonNeg ¶ func IsNonNeg(numStr string) bool 判断是否为非负数 func IsNonNegInt ¶ func IsNonNegInt(numStr string) bool 判断非负整数 func IsPosInt ¶ func IsPosInt(numStr string) bool 判断字符串是否为正整数 func IsPosNum ¶ func IsPosNum(numStr string) bool 判断是否为正数 Types ¶ This section is empty. Source Files ¶ View all Source files number.go Click to show internal directories. Click to hide internal directories.