Documentation ¶
Overview ¶
Package healthinsurancenumber provides parsing and validation for German health insurance numbers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSyntax = errors.New("health insurance number: invalid health insurance number") ErrCheckDigit = errors.New("health insurance number: invalid check digit") )
Functions ¶
Types ¶
type HealthInsuranceNumber ¶
type HealthInsuranceNumber string
HealthInsuranceNumber represents a 10-digit German health insurance id.
func Parse ¶
func Parse(s string) (HealthInsuranceNumber, error)
func (HealthInsuranceNumber) Compact ¶ added in v0.5.0
func (id HealthInsuranceNumber) Compact() string
func (HealthInsuranceNumber) MarshalText ¶
func (id HealthInsuranceNumber) MarshalText() ([]byte, error)
func (HealthInsuranceNumber) String ¶
func (id HealthInsuranceNumber) String() string
func (*HealthInsuranceNumber) UnmarshalText ¶
func (id *HealthInsuranceNumber) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.