Go in 5 Minutes, episode 14.
This screencast shows the basics of using the html/template
package to build complex web pages with Go.
Screencast video: https://www.goin5minutes.com/screencast/episode_14_using_templates/index.html
Extended screencast: https://gum.co/gifm-x-14
- Writing templates
- Rendering templates
- Example code
The GoDoc for html/template
(https://godoc.org/html/template) is very high quality and has great explanations on how the package works and how to use it.