The RESTful Web

In the previous chapters, we looked at two of the most important components of Go—goroutines and channels. In the following chapters, we will build a distributed application using Go, and it is very important to understand how to write applications for the internet or, in our case, the web. In this chapter, we shall look at a particular way of building web applications using the REST web protocol. We shall also look at how to interact with a REST-based web application. We shall be covering them in the following manner:

  • A brief look at HTTP and sessions
  • Fundamentals to build a REST server
  • Design a simple REST server
  • Tools to interact with a REST server

Get Distributed Computing with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.