Another very powerful tool is the Go templating engine, available in text/template. Its functionalities are replicated and extended in the html/template package, which constitutes another powerful tool for web development with Go.
Beginning with the template engine
Syntax and basic usage
The template package enables us to separate presentation from data, using text files and data structures. The template engine defines two delimiters—left and right—for opening and closing actions that represent data evaluation. The default delimiters are {{ and }}, and the template evaluates only what's included within these delimiters, leaving the rest untouched.
Usually the data bound to the template is a structure...