gb11643

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gb11643 解析身分证详情

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(val []byte) bool

IsValid 判断一个身份证是否符合 gb11643 标准

Types

type GB11643

type GB11643 struct {
	Raw    string    // 原始数据
	Region string    // 区域代码
	Date   time.Time // 出生年月
	IsMale bool      // true 为男姓,false 为女生
}

GB11643 身份证信息

func Parse

func Parse(bs string) (*GB11643, error)

Parse 分析身份证信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL