gobuffalo / plush

The powerful template system that Go needs
MIT License
900 stars 56 forks source link

Panic due to slice bounds out of range #144

Closed Mido-sys closed 3 years ago

Mido-sys commented 3 years ago
<% let a = [1, 2, "three", "four", 3.75] %><%= a[5]  %>

Plush panics when we try to access the slice with an index that doesn't exist.

Mido-sys commented 3 years ago

Fixed in #145

An error will return index out of range [5] with length 5