Versions in this module Expand all Collapse all v1 v1.1.0 Jul 3, 2026 Changes in this version + var ErrDatabaseNotInitialized = errors.New("database cache is empty, call InitDatabase() first") + func GenerateRandomNIK(dst []byte) (string, error) type Details + District string + DistrictID string + RegencyCity string + RegencyCityID string v1.0.0 Jul 2, 2026 Changes in this version + const RowSize + var ErrBufferTooSmall = errors.New("buffer must have a minimum length of 16 bytes") + var ErrDistrictCodeLength = errors.New("district code must be 6 digits") + var ErrInvalidGender = errors.New("gender must be 'male' or 'female'") + var ErrUniqueCodeLength = errors.New("unique code must be 4 digits when provided") + func GenerateNIK(dst []byte, kecamatanID string, birthDate time.Time, gender string, ...) (string, error) + func InitDatabase() error + type Details struct + BirthDate time.Time + Gender string + IsValid bool + KabupatenKota string + KabupatenKotaID string + Kecamatan string + KecamatanID string + NIK string + PostalCode string + Province string + ProvinceID string + UniqueCode string + type Parser struct + func New(nik string) Parser + func (p Parser) BirthDate() time.Time + func (p Parser) District() string + func (p Parser) DistrictID() string + func (p Parser) Gender() string + func (p Parser) GetDetails() Details + func (p Parser) IsValid() bool + func (p Parser) PostalCode() string + func (p Parser) Province() string + func (p Parser) ProvinceID() string + func (p Parser) RegencyCity() string + func (p Parser) RegencyCityID() string + func (p Parser) UniqueCode() string + type Result struct + Name string + PostalCode string + Type string