Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Organisationsnummer ¶
type Organisationsnummer struct {
// contains filtered or unexported fields
}
Organisationsnummer represents the organisationsnummer struct.
func New ¶
func New(input string) (*Organisationsnummer, error)
New parse a Swedish organization numbers and returns a new struct or a error.
func Parse ¶
func Parse(input string) (*Organisationsnummer, error)
Parse Swedish organization numbers and return a new struct.
func (*Organisationsnummer) Format ¶
func (o *Organisationsnummer) Format(separator ...bool) string
Format a Swedish organization number as one of the official formats, a long format or a short format.
func (*Organisationsnummer) GetType ¶
func (o *Organisationsnummer) GetType() string
Get the organization type.
func (*Organisationsnummer) IsPersonnummer ¶
func (o *Organisationsnummer) IsPersonnummer() bool
Determine if personnummer or not.
func (*Organisationsnummer) Personnummer ¶
func (o *Organisationsnummer) Personnummer() personnummer.Personnummer
Get Personnummer instance
func (*Organisationsnummer) String ¶
func (o *Organisationsnummer) String() string
Get the organization type.