Erster Wurf der Datenstrukturen für Trainer, Teilnehmer und Unterweisung

This commit is contained in:
Jason Streifling 2023-10-04 17:41:22 +02:00
parent 16240b8c01
commit e18fb0d158

21
main.go
View File

@ -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) {