Skip to content

Golang Myanmar NRC Validator and Township info extractor written in

License

Notifications You must be signed in to change notification settings

ezysign/go-mm-nrc-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-MM-NRC-Validator

Build Status

Myanmar NRC Validator for GoLang that validates the NRC format using township data

Installation

install using go get

go get github.com/ezysign/go-mm-nrc-validator/validator

Usage

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("၄/ကပလ(နိုင်)၀၉၄၁၈၆"))

}

License

MIT

About

Golang Myanmar NRC Validator and Township info extractor written in

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages