Verschiedene Typen in package types ausgelagert und Channels zum asynchronen Datentransport eingesetzt

This commit is contained in:
2023-10-05 19:52:11 +02:00
parent fcb509c9fe
commit 1bcfbfd325
4 changed files with 66 additions and 33 deletions

23
types/types.go Normal file
View File

@ -0,0 +1,23 @@
package types
type Person struct {
FirstName string
LastName string
}
type Instructor Person
type Participant struct {
ID int64
Person
Company string
}
type Briefing struct {
Instructor
Date string
Time string
State string
Location string
Participants []Participant
}