fehlerbehebung
This commit is contained in:
parent
6454f31b2b
commit
6d073547d3
|
@ -9,7 +9,7 @@ func getEvents() []event {
|
||||||
|
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
Event := new(event)
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,10 @@ type status struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type event struct {
|
type event struct {
|
||||||
|
id int
|
||||||
title string
|
title string
|
||||||
description string
|
description string
|
||||||
media []string
|
media string
|
||||||
date string
|
date string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue