Versuch, eine übersichtlichere Struktur einzuführen
This commit is contained in:
23
packages/types/types.go
Normal file
23
packages/types/types.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user