O'Reilly logo

Web Development with Go: Building Scalable Web Apps and RESTful Services by Shiju Varghese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

Working with Go Templates

Chapter 4 discussed the fundamentals of web development in Go using the standard library package net/http. A JSON-based web API was created by using the standard library package net/http as the primary web programming block and the third-party package Gorilla mux as the HTTP request multiplexer. This chapter shows you how to develop web applications in Go; the standard library package html/template is used for rendering web pages.

This chapter begins with the fundamentals of Go templates and includes how to develop full-fledged web applications by leveraging the html/template package.

text/template Package ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required