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: 5 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T18:46:29.000Z (9 months ago)
- Last Synced: 2024-08-04T01:11:43.462Z (8 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 [](https://github.com/personnummer/go/actions) [](https://pkg.go.dev/github.com/personnummer/go/v3) [](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