Production Go
Production Go
Free!
Minimum price
$4.99
Suggested price
Production Go

This book is 55% complete

Last updated on 2019-06-05

About the Book

With its focus on simplicity and getting things done, Go is a great language for developing performant, robust and maintainable applications. Production Go first teaches the basics of the Go language, then discusses how to bring an application from development to real users. The authors draw from years of experience running high-volume real-world Go applications to explain the tricks behind making—and keeping—Go applications performant, robust and maintainable.

About the Authors

Herman Schaaf
Herman Schaaf

Herman Schaaf is a London-based software engineer writing production Go at Skyscanner.

Shawn Smith
Shawn Smith

Shawn Smith is a software engineer based in Japan. His first contribution to Go was in Fall 2012, and he's been using Go primarily ever since.

Table of Contents

  •  
    • Introduction
  • Getting Started
    • Installing Go
      • Installation
      • GOPATH
      • Editor Integrations
      • Linters and Correctness Tooling
    • Basics
      • Program Structure
      • Variables and Constants
      • Basic Data Types
      • Structs
      • Operators
      • Conditional Statements
      • Arrays
      • Slices
      • Maps
      • Loops
      • Functions
      • Exported Names
      • Pointers
      • Goroutines
      • Channels
      • Interfaces
      • Error Handling
      • Reading Input
      • Writing Output
    • Style and Error Handling
      • Style
      • Error Handling
      • Wrapping Up
    • Strings
      • Appending to Strings
      • Splitting strings
      • Counting and finding substrings
      • Advanced string functions
      • Ranging over a string
    • Supporting Unicode
      • A very brief history of string encodings
      • Strings are byte slices
      • Printing strings
      • Runes and safely ranging over strings
      • Handling right-to-left languages
    • Concurrency
      • sync.WaitGroup
      • Channels
      • Goroutines in web handlers
      • Pollers
      • Race conditions
    • Testing
      • Why do we need tests?
      • Writing Tests
      • Testing HTTP Handlers
      • Mocking
      • Generating Coverage Reports
      • Writing Examples
    • Benchmarks
      • A simple benchmark
      • Comparing benchmarks
      • Resetting benchmark timers
      • Benchmarking memory allocations
      • Modulo vs Bitwise-and
    • Tooling
      • Godoc
      • Go Guru
      • Race Detector
      • Go Report Card
    • Security
      • Keep Go Up to Date
      • CSRF
      • HTTP Strict Transport Security (HSTS)
      • Content Security Policy (CSP)
      • SQL Injection
      • See Also
    • Continuous Integration
      • Travis CI
      • Drone
      • Jenkins
      • TeamCity
      • CircleCI
      • General tips
    • Deployment
      • Setting the Stage
    • Monitoring
      • Prometheus
    • Optimization
    • Common Gotchas
      • Nil interface
    • Further Reading
    • Acknowledgements
      • Licenses
  • Notes

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub