Go templates: How do I access array item (arr[2]) in templates? January 14, 2023 by Tarik You need to use the index template function. {{index .a 2}}