From 49205f06c572de1e72ea46ae9896599dfbc49cbf Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 18:41:04 +0100 Subject: [PATCH] fehlerbehebung --- events.go | 2 +- structs.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/events.go b/events.go index ed8112f..5f8c0d0 100644 --- a/events.go +++ b/events.go @@ -9,7 +9,7 @@ func getEvents() []event { for rows.Next() { Event := new(event) - err := rows.Scan(&Event.date, &Event.description, &Event.media, &Event.title) + err := rows.Scan(&Event.id, &Event.title, &Event.description, &Event.media, &Event.date) if err != nil { panic(err) } diff --git a/structs.go b/structs.go index c0204f2..daff66b 100644 --- a/structs.go +++ b/structs.go @@ -11,9 +11,10 @@ type status struct { } type event struct { + id int title string description string - media []string + media string date string }