Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/personnummer/go
Validate Swedish personal identity numbers
https://github.com/personnummer/go
go personal-identity-number personnummer social-security-number validation
Last synced: 28 days ago
JSON representation
Validate Swedish personal identity numbers
- Host: GitHub
- URL: https://github.com/personnummer/go
- Owner: personnummer
- License: mit
- Fork: true (frozzare/go-personnummer)
- Created: 2017-10-18T18:34:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T18:46:29.000Z (5 months ago)
- Last Synced: 2024-08-04T01:11:43.462Z (4 months ago)
- Topics: go, personal-identity-number, personnummer, social-security-number, validation
- Language: Go
- Homepage: https://pkg.go.dev/github.com/personnummer/go
- Size: 91.8 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - Go
README
# personnummer [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/personnummer/go/go.yml?branch=master)](https://github.com/personnummer/go/actions) [![GoDoc](https://godoc.org/github.com/personnummer/go?status.svg)](https://pkg.go.dev/github.com/personnummer/go/v3) [![Go Report Card](https://goreportcard.com/badge/github.com/personnummer/go)](https://goreportcard.com/report/github.com/personnummer/go)
Validate Swedish personal identity numbers.
## Installation
```
go get -u github.com/personnummer/go/v3
```## Example
```go
package mainimport (
personnummer "github.com/personnummer/go/v3"
)func main() {
personnummer.Valid("198507099805")
//=> true
}
```## License
MIT