Understanding HTML templates in Go (golang)
I use Echo in this post, but you could also use plain net/http, or any of the other awesome web frameworks for Go, see a list here. The Go standard library provides a html/template package, for dynamically rendering HTML, it is built on top of text/template Go templates are normal HTML files, with “Actions” (data evaluations or control structures), these “Actions” are delimited via {{and}}. A template is executed via applying a data structure to it, the data structure is referenced as a dot ....