Simple TC Identity number generator and validator (offline)
Install package on your project
$ go get -u github.com/peacecwz/tckno
Generate TC Identity number. It's so simple
package main
import (
"fmt"
"github.com/peacecwz/tckno"
)
func main(){
tckNo := tckno.Generate()
fmt.Printf(tckNo)
}
package main
import (
"fmt"
"github.com/peacecwz/tckno"
)
func main() {
tckNo := "29896722612"
result, _ := tckno.Validate(tckNo)
if result {
fmt.Printf("%s identity number valid", tckNo)
}
}
This project is licensed under the MIT License