Simple TC Identity number generator and validator (offline)
Install package on your project
$ go get -u github.com/peacecwz/tcknoGenerate 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