In the Golang template package, the first example given pulls its data from a struct.

However, the documentation states that data can also be pulled from a map:

" Annotations in the template refer to elements of the data structure (typically a field of a struct or a key in a map)"

This example demonstrates this use.