You are previewing The Go Programming Language Phrasebook.

The Go Programming Language Phrasebook

Cover of The Go Programming Language Phrasebook by David Chisnall Published by Addison-Wesley Professional

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.