Build a Blog With Go Templates
In this tutorial, you will learn how to use the html/template package to create a blog application.
Go templates made easy
Go ships with its own template engine, split into two packages, text/template and html/template. These packages are similar in functionality, with the difference that html/template allows a user to generate HTML code that is safe against code injection, making it suitable for use on web pages and emails. These packages are also used in other applications such as the configuration for Helm, the Kubernetes package manager, assisting with code generation and much more. (more…)