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 }