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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.