Parse NIK (National Identification Number) Indonesia, this project purpose to extract information from NIK format such as province, city, district, gender and birthdate
Use go get command
go get github.com/bicky33/panik
Then Import in go project
import "github.com/bicky33/panik"
parser := panik.NIK{NIK: "Your NIK"}
data, err := parser.Data()
Source data such as province code, district, etc. i got from here which based on Permendagri No. 72/2019
- add more test case
- add proper error message
- optimaze code