arkalon76 / go-heimdallr

Validate identity number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-heimdallr

Validates a variety of different personal identification numbers. It will check correct formatting and length, and if possible, checksum. It will not NOT check if its a "real" ID number. Build Status

Usage

heimdallr.ValidateHKID("M812318(2)")

Supported ID's

  • Hong Kong National ID (HKID)

Benchmark

goos: linux
goarch: amd64
pkg: github.com/arkalon76/go-heimdallr
BenchmarkValidateHKID-4   	  126553	      9609 ns/op	    6064 B/op	      83 allocs/op
PASS
ok  	github.com/arkalon76/go-heimdallr	1.317s

About

Validate identity number

License:Apache License 2.0


Languages

Language:Go 100.0%