O'Reilly logo

The Go Programming Language Phrasebook by David Chisnall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required