Golang templates example without the use of structs
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.
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login .