Checker/validator for Hong Kong IDs
This Go package validates Hong Kong ID card IDs. Useful for example for validating form input.
go get -u github.com/PatrLind/hkidchecker
package main
import (
"fmt"
"github.com/PatrLind/hkidchecker"
)
func main() {
hkid := "E364912(5)"
valid := hkidchecker.CheckHKID(hkid)
fmt.Printf("HKID '%s' valid: %t\n", hkid, valid)
}
This project is licensed under the MIT License - see the LICENSE.md file for details