Go Programming
Interview-sized Go
Go for the Nubank AI coding interview has the subset to know before an interview. It covers errors with
%w, money asint64cents, table-driven tests and an injected clock. Its worked code compiles and passes its tests.
Language Fundamentals
- Types & Variables
- Control Flow
- Functions & Closures
- Structs & Methods
- Interfaces & Type Assertions
- Error Handling Patterns
- Generics (Go 1.18+)
Data Structures in Go
Concurrency
- Goroutines
- Channels (buffered, unbuffered, directional)
- Select Statement
- sync Package (Mutex, WaitGroup, Once, Pool)
- Concurrency Patterns (fan-in, fan-out, pipeline, worker pool)
- Context Package
Standard Library
- fs
- http (Server & Client)
- json
- Testing (table-driven, benchmarks, fuzzing)
- sort Package & sort.Interface
Idioms & Best Practices
Go for LeetCode
- Learn Go with LeetCode: a learning path (start here: 12 stages, each with Go syntax, a template to memorize and solved problems with comments)
- NeetCode 150 in Go: a learning path (then this: all 150 problems, each with its pattern, its template and a commented Go solution)
- Go LeetCode Snippets & Templates
- Go vs Python for DSA (trade-offs)