© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_23

23. Using HTML and Text Templates

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe standard library packages that are used to produce HTML and text content from templates. These template packages are useful when generating large amounts of content and have extensive support for generating dynamic content. Table 23-1 puts the HTML and text templates in context.
Table 23-1

Putting HTML and Text Templates in Context

Question

Answer

What are they?

These templates allow HTML and text content to be generated dynamically from Go data values.

Why are they useful?

Templates are useful when large amounts ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.