Here is a reading list of blog posts about Go. It aspires to include only the most useful and relevant material that anyone writing Go should eventually read. By definition, the list is a work in progress.
Rather than being comprehensive, the list is a curated selection fixed at 200 entries.
Go is growing fast and so are the number of blog posts about it. If an interested reader knows of a great post not on this list, please open an issue with a link to the post.
NOTE: Any new additions will need to replace something else on the list to keep it at a fixed length.
- Why should you learn Go?
- How to Write Go Code
- A Tour of Go
- Frequently Asked Questions
- Go Koans
- Go by Example
- Understand Go pointers in less than 800 words or your money back
- Channel Axioms
- Golang channels tutorial
- (Now You're) Thinking With Channels
- Go Defer Simplified with Practical Visuals
- Understanding Go panic output
- How to avoid Go gotchas
- Common Gotchas in Go
- 50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang Devs
- Slices from the ground up
- 6 Tips for Using Strings in Go
- Unofficial Go FAQ
- Effective Go
- Visualizing Concurrency in Go
- Strings, bytes, runes and characters in Go
- Arrays, slices (and strings): The mechanics of 'append'
See Go Books for a longer list of books, both free and paid.
- Less is exponentially more
- Go Proverbs
- Code Review Comments
- Idiomatic Go
- Error handling and Go
- Effective error handling in Go
- Go's Error Handling is Elegant
- When Should I Use One Liner if...else Statements in Go?
- Five Suggestions for Setting up a Go project
- The One with the Directory Structure and Manual Wiring
- Structuring Tests in Go
- Organizing Go Code
- The anatomy of a Go project
- Standard Package Layout
- Structuring Applications in Go
- Style guideline for Go packages
- Package names
- For Range Semantics
- How to use interfaces in Go
- Creating My First Web Application with Go
- Making a RESTful JSON API in Go
- Golang HTTP server for pro
- Serving Static Sites with Go
- An Intro To Templates in Go
- JSON APIs Are Just Web Applications
- Writing middleware in #golang and how Go makes it so much fun
- Go and JSON
- Learn Web Programming in Go by Examples
- Accessing data in Go
- Learning Go's Concurrency Through Illustrations
- Data races in Go(Golang) and how to fix them
- Multithreading in Go - A Tutorial
- Go’s append is not always thread safe
- Golang channels tutorial
- Go best practices, six years in
- Aspects of a good Go library
- Solid Go Design
- Go for Industrial Programming
- Failure is your Domain
- What “accept interfaces, return structs” means in Go
- How to Use Go Interfaces
- Pitfalls of context values and how to avoid or mitigate them in Go
- How to organize the go struct, in order to save memory
- How to ship production-grade Go
- Loose Coupling in Go lang
- Self-referential functions and the design of options
- Functional Options for Friendly APIs
- Object Oriented Inheritance in Go
- Error handling in Upsin
- Iterators in Go
- Stop writing broken Go libraries
- Concurrency Patterns
- Stopping goroutines
- Ways to limit concurrent resource use
- Make Ctrl+C cancel the context.Context
- How to correctly use context.Context in Go 1.7
- Using contexts to avoid leaking goroutines
- Go Concurrency Patterns: Pipelines and cancellation
- Tutorial: Synchronizing State with Mutexes in Go
- Context and Cancellation of goroutines
- Dancing with Go's Mutexes
- GoRoutines, Channels, and Proper Exits
- Buffered channels in Go: Tips & Tricks
- How to Block Forever in Go
- Mutex Profile
- Sane Concurrency with Go
- Error handling patterns in Go
- Does the race detector catch all data races?
- Interesting ways of using Go channels
- Testing Web Apps in Go
- An Introduction to Testing in Go
- 5 simple tips and tricks for writing unit tests in #golang
- 5 Advanced Testing Techniques in Go
- The Cult of Go Test
- Interfaces and Composition for Effective Unit Testing in Golang
- Go Testing Technique: Testing JSON HTTP Requests
- Acceptance Testing Go Web Applications with Cookies
- Testing Your (HTTP) Handlers in Go
- Go test your tests in Go with go test
- Learn Go with tests
- Unit Testing Golang HTTP Middleware
- Lesser-Known Features of Go Test
- When Writing Unit Tests, Don’t Use Mocks
- Exposing Go on the Internet
- The complete guide to Go net/http timeouts
- HTTP(S) Proxy in Golang in less than 100 lines of code
- Deploying Go apps on Docker scratch images
- Write a Kubernetes-ready service from zero step-by-step
- How To Write Router Tests in Go
- A brief intro of TCP keep-alive in Go’s HTTP implementation
- Build a Web Crawler in Go
- Your pprof is showing: IPv4 scans reveal exposed net/http/pprof endpoints:
- HTTP Request Contexts & Go
- Using Object-Oriented Web Servers in Go
- Handle HTTP Request Errors in Go
- Go json.Decoder Considered Harmful
- Building High Performance APIs In Go Using gRPC And Protocol Buffers
- Implementing UDP vs TCP in Golang
- Don't use Go's default HTTP client (in production)
- Writing an API Client in Go
- Seeking around in an HTTP object
- Using Functions Inside Go Templates
- Writing a Data Mapper in Go without an ORM
- Practical Persistence in Go: Organising Database Access
- How I write Go HTTP services after seven years
- Go tooling essentials
- Profiling Go Programs
- Go Tooling in Action
- Using Go as a scripting language in Linux
- 10 things you (probably) don't know about Go
- Gopher Puzzlers
- Advanced Go Tips And Tricks
- Golang slices gotcha
- Golang: pass by pointer vs pass by value
- There is no pass-by-reference in Go
- Variadic functions in Go
- Crossing Streams: a Love Letter to io.Reader
- Function Types in Go (golang)
- research!rsc: Go Data Structures
- The Relationship Between Interfaces and Reflection
- Always Be Closing
- Don't defer Close() on writable files
- Examples For Using io.Pipe in Go
- How to Use go:generate
- Writing worker queues, in Go
- Job Queues in Go - OpsDash
- Reading files in Go
- Vanity Go Import Paths
- Tags in Golang
- Go's work-stealing scheduler
- The Go scheduler
- Go Assembly by Example
- Address Alignments in Go
- Hacking the Scheduler
- Scheduling In Go - Part II
- Anatomy of a function call in Go
- Scheduler Tracing in Go
- unsafe.Pointer and system calls
- Type-Unsafe Pointers
- Looking at your program’s structure in Go 1.7
- Managing Syscall Overhead with crypto/rand
- Optimized abs() for int64 in Go
- Monkey Patching in Go
- Golang escape analysis
- Allocation Efficiency in High-Performance Go Services
- Handling 1 Million Requests per Minute with Go
- Go code refactoring : the 23x performance hunt
- A Million WebSockets and Go
- go-perfbook
- Allocation Efficiency in High-Performance Go Services
- Golang's Real-time GC in Theory and Practice
- How to Optimize Garbage Collection in Go
- Advanced Go Concurrency Patterns
- The X-Files: Avoiding Concurrency Boilerplate with golang.org/x/sync
- Golang lock-free values with atomic.Value
- Share Memory by Communicating
- Concurrency is not parallelism
- Go Concurrency Patterns: Context
- Go Concurrency Patterns: Timing out, moving on
- Concurrency, Goroutines and GOMAXPROCS
- Locking in crypto/rand
- Stateful locks in Go