Jason Buberel | 513e1d6 | 2015-08-29 14:24:35 -0700 | [diff] [blame^] | 1 | This page links to resources for learning about server programming in Go - both web services and mobile backends. The items are organized into sections by topic. |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 2 | |
Sameer Ajmani | cff9793 | 2015-01-09 10:37:29 -0500 | [diff] [blame] | 3 | ## Getting Started |
| 4 | |
Jason Buberel | 513e1d6 | 2015-08-29 14:24:35 -0700 | [diff] [blame^] | 5 | - Read [Writing Web Applications with the Go standard library](http://golang.org/doc/articles/wiki/) |
| 6 | - Read [Building Web Applications in Go](https://www.gitbook.com/book/codegangsta/building-web-apps-with-go/details) from the author of the [Negroni](https://github.com/codegangsta/negroni) and [Martini](http://martini.codegangsta.io/) webserver toolkits. |
| 7 | - Read [Build a Web Application With Go](https://github.com/astaxie/build-web-application-with-golang) from the author of the [BeeGo web framework](http://beego.me/) |
Sameer Ajmani | cff9793 | 2015-01-09 10:37:29 -0500 | [diff] [blame] | 8 | - Code [A Tour of Go: Web Servers](http://tour.golang.org/methods/13) and [HTTP Handlers](http://tour.golang.org/methods/14) |
Sameer Ajmani | 3f68685 | 2015-01-09 13:52:59 -0500 | [diff] [blame] | 9 | - Watch [Go: code that grows with grace](http://talks.golang.org/2012/chat.slide#1) |
Sameer Ajmani | 95ff258 | 2015-01-09 10:23:11 -0500 | [diff] [blame] | 10 | |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 11 | ## Communication |
| 12 | |
| 13 | - [Package net/http](http://golang.org/pkg/net/http) provides HTTP client and server implementations. |
| 14 | - [Package encoding/json](http://golang.org/pkg/encoding/json) implements encoding and decoding of JSON objects as defined in RFC 4627. |
| 15 | - [Package net/rpc](http://golang.org/pkg/net/rpc) provides access to the exported methods of an object across a network or other I/O connection. |
| 16 | - [Package os/exec](http://golang.org/pkg/os/exec) runs external commands. |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 17 | |
| 18 | ## Presentation |
| 19 | |
| 20 | - [Package text/template](http://golang.org/pkg/text/template) implements data-driven templates for generating textual output. |
Christoffer G. Thomsen | b726c99 | 2015-05-14 13:25:38 +0200 | [diff] [blame] | 21 | - [Package html/template](http://golang.org/pkg/html/template) implements data-driven templates for generating HTML output safe against code injection. |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 22 | |
| 23 | ## Profiling and Performance |
| 24 | |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 25 | - Read [Profiling Go Programs](http://blog.golang.org/profiling-go-programs) |
Sameer Ajmani | 95ff258 | 2015-01-09 10:23:11 -0500 | [diff] [blame] | 26 | - Read [Arrays, slices (and strings): The mechanics of 'append'](http://blog.golang.org/slices) |
| 27 | - Read the [Frequently Asked Questions (FAQ)](http://golang.org/doc/faq), especially |
| 28 | - [Why does Go perform badly on benchmark X?](http://golang.org/doc/faq#Why_does_Go_perform_badly_on_benchmark_x) |
| 29 | - [Why do garbage collection? Won't it be too expensive?](http://golang.org/doc/faq#garbage_collection) |
| 30 | - [Package bufio](http://golang.org/pkg/bufio) implements buffered I/O. |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 31 | - [Package runtime/pprof](http://golang.org/pkg/runtime/pprof) writes runtime profiling data in the format expected by the pprof visualization tool. |
| 32 | - [Package net/http/pprof](http://golang.org/pkg/net/http/pprof) serves via its HTTP server runtime profiling data in the format expected by the pprof visualization tool. |
| 33 | |
| 34 | ## Tracing, Monitoring, Logging, and Configuration |
| 35 | |
| 36 | - [Package expvar](http://golang.org/pkg/expvar) provides a standardized interface to public variables, such as operation counters in servers. |
| 37 | - [Package flag](http://golang.org/pkg/flag) implements command-line flag parsing. |
| 38 | - [Package log](http://golang.org/pkg/log) implements a simple logging package. |
| 39 | - [Package glog](https://github.com/golang/glog) implements logging analogous to the Google-internal C++ INFO/ERROR/V setup. |
| 40 | |
| 41 | ## Storage |
| 42 | |
| 43 | - [Package os](http://golang.org/pkg/os) provides a platform-independent interface to operating system functionality. |
| 44 | - [Package path/filepath](http://golang.org/pkg/path/filepath) implements utility routines for manipulating filename paths in a way compatible with the target operating system-defined file paths. |
| 45 | - [Package database/sql](http://golang.org/pkg/database/sql) provides a generic interface around SQL (or SQL-like) databases. |
| 46 | |
| 47 | ## Platforms |
| 48 | |
| 49 | ### Google Cloud Platform |
| 50 | |
Sameer Ajmani | 3cd958d | 2015-01-09 12:26:49 -0500 | [diff] [blame] | 51 | - Read [Google Cloud Platform: Go Runtime Environment](https://cloud.google.com/appengine/docs/go/) |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 52 | - Watch [Go and the Google Cloud Platform](http://blog.golang.org/go-and-google-cloud-platform) |
| 53 | - Read [Go on App Engine: tools, tests, and concurrency](http://blog.golang.org/appengine-dec2013) |
| 54 | - Read [Deploying Go servers with Docker](http://blog.golang.org/docker) |
Sameer Ajmani | 42e6ba3 | 2015-01-09 08:46:27 -0500 | [diff] [blame] | 55 | - Search packages for [Google Cloud](http://godoc.org/?q=google+cloud) or [gcloud](http://godoc.org/?q=gcloud) |
| 56 | - Search packages for [App Engine](http://godoc.org/?q=appengine) or [GAE](http://godoc.org/?q=gae) |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 57 | |
| 58 | ### Amazon Web Services |
| 59 | |
Sameer Ajmani | c32d6d3 | 2015-01-29 14:44:46 -0500 | [diff] [blame] | 60 | - The [aws-sdk-go](https://github.com/awslabs/aws-sdk-go) repository provides automatically generated AWS clients in Go. It has [official support](http://aws.amazon.com/blogs/aws/coming-soon-aws-sdk-for-go) from Amazon. |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 61 | - [Package goamz](https://wiki.ubuntu.com/goamz) enables Go programs to interact with the Amazon Web Services. |
Sameer Ajmani | d863b09 | 2015-01-09 14:40:10 -0500 | [diff] [blame] | 62 | - Search packages for [AWS](http://godoc.org/?q=aws) or [Amazon services](http://godoc.org/?q=amazon+service) |
Sameer Ajmani | 7c9bcc1 | 2015-01-08 16:45:32 -0500 | [diff] [blame] | 63 | |
| 64 | ### Microsoft Azure |
| 65 | |
Sameer Ajmani | 5df457b | 2015-01-09 08:47:54 -0500 | [diff] [blame] | 66 | - Microsoft OpenTech's [azure-sdk-for-go](https://github.com/MSOpenTech/azure-sdk-for-go) provides a Golang package that makes it easy to consume and manage Microsoft Azure Services. |
Sameer Ajmani | 42e6ba3 | 2015-01-09 08:46:27 -0500 | [diff] [blame] | 67 | - Search packages for [Azure](http://godoc.org/?q=azure) |
Brendan O'Donnell | becb636 | 2015-05-20 16:22:09 -0500 | [diff] [blame] | 68 | |
| 69 | ### Openstack / Rackspace |
| 70 | |
| 71 | - Rackspace's [gophercloud](https://github.com/rackspace/gophercloud) is a Golang SDK for working with OpenStack clouds. |
| 72 | - Search packages for [Openstack](http://godoc.org/?q=openstack) or [Rackspace](http://godoc.org/?q=rackspace) |