While working on creating a template file for a Golang project, I wanted to better understand how to work
with data in Golang templates as available via the
html/template package. In this post, I discuss
a few use cases that may arise.
Accessing a variable
Let's consider our first …