Chapter 7. Go web services
This chapter covers
- Using RESTful web services
- Creating and parsing XML with Go
- Creating and parsing JSON with Go
- Writing Go web services
Web services, as you’ll recall from our brief discussion in chapter 1, provide a service to other software programs. This chapter expands on this and shows how you can use Go to write or consume web services. You’ll learn how to create and parse XML and JSON first, because these are the most frequently used data formats with web services. We’ll also discuss SOAP and RESTful services before going through the steps for creating a simple web service in JSON.
7.1. Introducing web services
One of the more popular uses of Go is in writing web services that provide services and ...
Get Go Web Programming 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.