Skip to content
/ tckno Public

TC Identity Number Utils for validation and generation

License

Notifications You must be signed in to change notification settings

peacecwz/tckno

Repository files navigation

TC Identity Utils

Simple TC Identity number generator and validator (offline)

Getting Started

Install package on your project

$ go get -u github.com/peacecwz/tckno

Generate TC Identity Number

Generate TC Identity number. It's so simple

package main

import (
    "fmt"
    "github.com/peacecwz/tckno"
)

func main(){
    tckNo := tckno.Generate()
    fmt.Printf(tckNo)
}

Validate TC Identity Number

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)
    }
}

License

This project is licensed under the MIT License

About

TC Identity Number Utils for validation and generation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages