Documentation ¶
Overview ¶
Package sweid validates Swedish Personal Identification Number (personnummer) and Organisational Number (organisationsnummer).
More information about these identifiers can be found at the Swedish Tax Agency, http://www.skatteverket.se.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidON ¶
ValidON validates a Swedish organisational number (organisationsnummer). Definitions can be found at http://www.skatteverket.se (search for organisationsnummer).
Example ¶
if ValidON("212000-0142") { fmt.Println("Correct Organisational Number!") } else { fmt.Println("Invalid Organisational Number!") }
Output:
func ValidPN ¶
ValidPN validates a Swedish personal identification number (personnummer). Definitions can be found at http://www.skatteverket.se (search for personnummer).
Example ¶
if ValidPN("640823-3234") { fmt.Println("Correct Personal Identification Number!") } else { fmt.Println("Invalid Personal Identification Number!") }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.