Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
templates
Makefile
README.md
main.go

README.md

Building Web Pages Using html/template

Watch The Screencast

Go in 5 Minutes, episode 14.

This screencast shows the basics of using the html/template package to build complex web pages with Go.

Screencast video: https://www.goin5minutes.com/screencast/episode_14_using_templates/index.html

Extended screencast: https://gum.co/gifm-x-14

Outline

  1. Writing templates
  2. Rendering templates
  3. Example code

Additional resources

The GoDoc for html/template (https://godoc.org/html/template) is very high quality and has great explanations on how the package works and how to use it.

You can’t perform that action at this time.