This section illustrates the use of the html/template package with an example named htmlT.go. It will be presented in six parts. The philosophy of the html/template package is the same as the text/template package. The main difference between these two packages is that html/template generates HTML output that is safe against code injection.
For reasons of simplicity, the following presented will read data from an SQLite database, but you can use any database that you want, provided that you have or you can write the appropriate ...