healthinsurancenumber

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package healthinsurancenumber provides parsing and validation for German health insurance ids.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSyntax     = errors.New("de/healthinsurancenumber: invalid health insurance number")
	ErrCheckDigit = errors.New("de/healthinsurancenumber: invalid check digit")
)

Functions

func IsValid

func IsValid(s string) bool

Types

type HealthInsuranceNumber

type HealthInsuranceNumber string

HealthInsuranceNumber represents a 10-digit German health insurance id.

func Parse

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL