Myanmar NRC Validator for GoLang that validates the NRC format using township data
install using go get
go get github.com/ezysign/go-mm-nrc-validator/validator
playground link
https://play.golang.org/p/W9mx5cGZFb2
package main
import (
"fmt"
"github.com/ezysign/go-mm-nrc-validator/validator"
)
func main() {
v := validator.NewNRCValidator()
fmt.Println(v.ExtractNrcInfo("၁၂/မဂတ(နိုင်)၀၉၄၁၈၆"))
fmt.Println(v.VerifyNRC("၄/ကပလ(နိုင်)၀၉၄၁၈၆"))
fmt.Println(v.ValidateNRC("၄/ကပလ(နိုင်)၀၉၄၁၈၆"))
fmt.Println(v.GetMatchNRC("၄/ကပလ(နိုင်)၀၉၄၁၈၆"))
}
MIT