Skip to content

ajaydeta/go-nik-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-nik-parser

This is NIK (nomor induk kependudukan) parser in GoLang

This module is in developing, do not use in porduction

Example

package main

import (
	"fmt"
	gonikparser "github.com/ajaydeta/go-nik-parser"
	"log"
)

func main() {
	nik, err := gonikparser.NikParse("3671012001010001")
	if err != nil {
		log.Println(err)
		return
	}

	fmt.Println(nik.GetProvinsi())
	fmt.Println(nik.GetKabKot())
	fmt.Println(nik.GetKecamatan())
	fmt.Println(nik.GetUnicode())
	fmt.Println(nik.GetPostalCode())
	fmt.Println(nik.GetBornDay())
	fmt.Println(nik.GetBornMonth())
	fmt.Println(nik.GetBornYear())
	fmt.Println(nik.GetBirdDay())
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages