Documentation
¶
Index ¶
- func FakeId() string
- func FakeRequireId(isEighteen bool, address string, birthday string, sex int) string
- func IsLooseValid(id string) bool
- func IsStrictValid(id string) bool
- func IsValid(id string, strict bool) bool
- func IsValidBasic(id string) bool
- func IsValidButAds(id string, strict bool, ignoreAdErr bool) bool
- func UpgradeId(id string) (string, error)
- type BasicIdInfo
- type IdInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeRequireId ¶
FakeRequireId 按要求生成假身份证号码 isEighteen 是否生成18位号码 address 省市县三级地区官方全称:如`北京市`、`台湾省`、`香港特别行政区`、`深圳市`、`黄浦区` birthday 出生日期:如 `2000`、`198801`、`19990101` sex 性别:1为男性,0为女性
func IsValidButAds ¶
IsValid 验证身份证号合法性(排除县级地址错误,比如黑龙江阿城县这种离谱的
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.