- Go Web Development Cookbook
- Arpit Aggarwal
- 61字
- 2021-08-27 19:01:16
Creating your first template
Templates allow us to define placeholders for dynamic content that can be replaced with the values at runtime by a template engine. They can then be transformed into an HTML file and sent to the client. Creating templates in Go is fairly easy using Go's html/template package, which we will be covering in this recipe.