com

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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