I can get the size of a slice in a template like this
{{$size := len .Things}}
And I can index a slice in a template like this:
{{index .Things 4}}
But
{{index .Things $size}}
gives an "out of range" error because indexing a slice is zero-based.
Do I have do all the function defining things or is there arithmetic available I can use?
I.e. how do I do this https://stackoverflow.com/a/22535888 but in a golang template.
Defining a minus function: https://stackoverflow.com/a/24838050/10245