hugoDocs/content/functions/index-function.md
2017-02-20 23:57:11 -06:00

472 B

title linktitle description godocref date publishdate lastmod tags categories toc draft aliases notesforauthors
index index https://golang.org/pkg/text/template/#hdr-Functions 2017-02-01 2017-02-01 2017-02-01
functions
false false

From the godocs:

Returns the result of indexing its first argument by the following arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each indexed item must be a map, slice, or array.

Example