Documentation
¶
Index ¶
- Variables
- func Valid(input string) bool
- type Organisationsnummer
- func (o *Organisationsnummer) Format(separator ...bool) string
- func (o *Organisationsnummer) GetType() string
- func (o *Organisationsnummer) IsPersonnummer() bool
- func (o *Organisationsnummer) Personnummer() personnummer.Personnummer
- func (o *Organisationsnummer) String() string
- func (o *Organisationsnummer) VatNumber() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidOrganizationNumber = errors.New("Invalid Swedish organization number")
)
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.
func (*Organisationsnummer) VatNumber ¶ added in v1.0.2
func (o *Organisationsnummer) VatNumber() string
Get vat number for a organization number.
Click to show internal directories.
Click to hide internal directories.