From e18fb0d1587fe39bd1f516eae576bce4100265be Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Wed, 4 Oct 2023 17:41:22 +0200 Subject: [PATCH] =?UTF-8?q?Erster=20Wurf=20der=20Datenstrukturen=20f=C3=BC?= =?UTF-8?q?r=20Trainer,=20Teilnehmer=20und=20Unterweisung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/main.go b/main.go index fbbd276..1c2098d 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,27 @@ import ( "net/http" ) +type Person struct { + FirstName string + LastName string +} + +type Instructor Person + +type Participant struct { + Person + Company string +} + +type Briefing struct { + Instructor + Date string + Time string + State string + Location string + Participants []Participant +} + func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {