Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdresseStructLevelValidation ¶
func AdresseStructLevelValidation(sl validator.StructLevel)
AdresseStructLevelValidation does a cross check on a Adresse object
Types ¶
type Adresse ¶
type Adresse struct { Postleitzahl string `json:"postleitzahl" example:"82031" validate:"numeric,required"` // zip code, mandatory Ort string `json:"ort" example:"Grünwald" validate:"alphaunicode,required"` // city name, mandatory Strasse string `json:"strasse" example:"Nördliche Münchner Straße 27A"` // street name Hausnummer string `json:"hausnummer" example:"27A"` // house number including suffixes like "a" or "-1" Postfach string `json:"postfach"` // post box Adresszusatz string `json:"adresszusatz" example:"3. Stock linke Wohnung"` // additional data, like f.e. floor or "Hinterhaus" CoErgaenzung string `json:"co_ergaenzung" example:"c/o Veronica Hauptmieterin"` // Landescode landescode.Landescode `json:"landescode"` // ISO 3166 country code }
Adresse is a general purpose address struct
Click to show internal directories.
Click to hide internal directories.