Reverse list to get the newest talk on top
This commit is contained in:
parent
9ad0e4175f
commit
642af5ea76
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -54,6 +54,11 @@ func main() {
|
||||||
data = append(data, t)
|
data = append(data, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for i := len(data)/2 - 1; i >= 0; i-- {
|
||||||
|
opp := len(data) - 1 - i
|
||||||
|
data[i], data[opp] = data[opp], data[i]
|
||||||
|
}
|
||||||
|
|
||||||
tmpl, err := template.ParseFiles("template.html")
|
tmpl, err := template.ParseFiles("template.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue