14. Web Applications

It should come as no surprise that a language developed by a web giant should have a lot of standard library support for the Internet. The textproto package, for example, contains generic functionality for implementing protocols that work on a challenge-response basis, exchanging lines of text. These include SMTP, NNTP, HTTP, and so on.

Go is now usable in the Google App Engine, so it’s not surprising that developing web applications is one of the main reasons to choose Go. In this chapter, we’ll look at several of the features that allow you to integrate with the web.

Integrating with a Web Server

 5  type webCounter struct { 6    count chan int 7  } 8  func NewCounter() *webCounter { 9    counter ...

Get The Go Programming Language Phrasebook 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.