Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.
personnummerPublic archive
 
 

Repository files navigation

personnummer GitHub Workflow Status GoDoc Go Report Card

Validate Swedish personal identity numbers.

Installation

go get -u github.com/personnummer/go/v3

Example

package main

import (
	personnummer "github.com/personnummer/go/v3"
)

func main() {
	personnummer.Valid("198507099805")
	//=> true
}

In memoriam

Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the personnummer project. This library carries his work. He is missed.

License

MIT