Expert-level Go fundamentals, runtime and compiler internals, standard library deep dives, practical patterns, testing guidance, production systems, and bilingual English/Korean documentation built with VitePress.
- GitHub repository:
https://github.com/jaeyoung0509/golang-handbook - Expected GitHub Pages site:
https://jaeyoung0509.github.io/golang-handbook/ - English docs source:
docs/ - Korean docs source:
docs/ko/ - Runnable examples and tests:
examples/
If the GitHub Pages URL still returns 404, go to:
- GitHub repository
Settings PagesBuild and deployment- Set the source to
GitHub Actions
After that, pushes to develop will deploy the site automatically through the Deploy docs workflow.
npm install
npm run docs:dev
go test ./...VitePress will print a local preview URL in the terminal, usually http://localhost:5173/.
- Deployment branch flow: push to
develop - Deployment workflow:
.github/workflows/deploy-docs.yml - GitHub Actions page:
https://github.com/jaeyoung0509/golang-handbook/actions
- Worker pool
- Pipeline
- Fan-out / fan-in
- Context cancellation
- Channel of channels
- Graceful shutdown
- Or-done / tee / bridge
- Structured concurrency (
errgroup) - Weighted semaphore
- Singleflight request coalescing
- Actor pattern
- Go runtime evolution and release-history checkpoints
- Go runtime and scheduler
- Netpoller, timers, and syscalls
- Channels,
select, and the memory model - Channel internals
- Mutex and runtime semaphore internals
- Map internals and Swiss Tables
- Garbage collector and Green Tea GC
- Compiler and toolchain internals: escape analysis, SSA, and Plan 9 assembly
- Allocator hierarchy and hybrid write barrier
- Memory layout, padding, and false sharing
- Generics implementation and interface runtime layout
- unsafe, cgo, and
runtime.Pinner - Modern performance tuning with PGO, execution tracing, and zero-copy I/O
- Standard library anatomy for
sync.Poolandreflect
context: cancellation trees,cancelCtx,timerCtx,Cause,AfterFunc, andWithoutCancelnet+netip: dial budgets, deadlines, resolver behavior,netip.Addridentity semantics, and listener ownershipcrypto/tls: handshake lifetime,tls.Config, ALPN, verification hooks, resumption, and hostname policynet/http: server timeout boundaries, request lifetimes, transport pooling,persistConn, and response-body ownershipdatabase/sql: pool internals, waiters, cleaner lifecycle,DB.Stats, and cancellation boundariestime: monotonic time, timer/ticker ownership, Go 1.23 timer semantics, and retry-loop designsync+sync/atomic:RWMutex,WaitGroup,Once,sync.Map,sync.Cond, and read-mostly snapshot publicationos/signal+runtime/metrics+net/http/pprof: process shutdown, signal-aware cancellation, runtime telemetry, and incident-time profilingos/exec: subprocess lifecycle,CommandContext, copy goroutines,WaitDelay,ErrDot, and output captureio+bufio+bytes: interface-driven streaming, buffering,io.Copyfast paths, scanner limits, and byte-slice aliasingencoding/json: stream decoding, strictness knobs, number handling, compatibility traps, and NDJSON-friendly encoding
net/http: transport reuse, timeout boundaries, response body ownership, and streaming caveatsgrpc-go:NewClient, long-lived channels, RPC deadlines, keepalive caution, and streaming ownershipgo-redis: pooling, protocol selection, RESP2/RESP3 tradeoffs, instrumentation, and timeout policyKafka with IBM Sarama: producer durability, consumer-group session lifecycle, offsets, and rebalance discipline
- Structured concurrency with
errgroup - Weighted semaphore admission control
- Singleflight request coalescing
- Actor pattern
- CSP theory in Go
- Backpressure and load shedding
- Large-scale Go systems: admission control, goroutine ownership, memory budgets, and shutdown policy
- Temporal and durable execution: history shards, task queues, worker polling, and why this kind of workflow engine fits Go well
- Open-source case studies from Kubernetes, etcd/raft, Prometheus, NATS, gRPC-Go, Traefik, CockroachDB, and go-redis
- Go open-source histories: why Prometheus, NATS, etcd, Kubernetes, CockroachDB, Caddy, Traefik, and Temporal landed in Go
- AI-assisted Go safety: what compile-time checks do and do not prove, plus an early-detection verification stack
- Race detector strategy
- Deterministic tests with
testing/synctest - Integration testing with
testcontainers-go, teardown boundaries, clean Postgres/Redis state, and typed fixture builders - Leak, shutdown, and timeout testing
- Tracing, contention, and profiling workflow
- Go CSP vs Rust Tokio comparison
- Go vs Rust decision guide for when to keep services in Go and when to move a subsystem to Rust