We show how to do use the the
html/template package (and its close sibling,
text/template). We pay special attention to templating tasks most common to web development like layouts, blocks and partials.
Check out the example code on Github.
I’ve created a 1hr extended screencast to complement this one. This screencast elaborates on this package and how to use it in the real world. For a fee, you’ll learn:
Go In 5 Minutes screencasts will always be free, while extended screencasts will be paid. I recommend you get this extended screencast if you’re planning to build a larger application or want to learn more details on how to practically use it.
See https://gum.co/gifm-x-14 for more details.
If you enjoyed this screencast, please consider becoming a backer and supporting Go in 5 Minutes. Cool stickers and more await you!