Articles tagged "go"
Page 1 of 4
Go Goroutines and Channels: Production Concurrency Patterns (2026)
Master Go goroutines and channels with production patterns: worker pools, fan-out/fan-in, context cancellation, semaphores, and pipeline patterns — with benchmarks and real-world examples.
Docker Multi-Stage Builds: From 1.2GB to Production-Ready Images (2026)
Docker multi-stage builds tutorial 2026. Reduce Python images from 1.2GB to 120MB, Go binaries to 5MB with FROM scratch. Size comparison table, cache optimization, and GitHub Actions integration.
Rust for Python and Go Developers: Ownership Explained Without the Pain (2026)
Learn Rust in 2026 coming from Python or Go. Side-by-side code comparisons explain ownership, borrowing, lifetimes, Option, Result, and traits — without fighting the borrow checker alone.
Go Concurrency: Goroutines, Channels and sync.WaitGroup with Real Examples (2026)
Master Go concurrency: goroutines, channels, sync.WaitGroup, Mutex, select, and worker pools with real-world examples. Avoid common mistakes.
Go REST API with Gin: From Zero to Production (2026)
Build a production-ready REST API in Go using the Gin framework. Includes routing, middleware, JSON responses, PostgreSQL integration, and Docker deployment.
Fix 'cannot use X (type Y) as type Z' in Go — Type Mismatch Guide
Fix 'cannot use X (type Y) as type Z' in Go. Covers explicit conversions, interface satisfaction, pointer vs value receivers, and type assertions with the ok pattern.
Go: Convert Rune to String and String to Rune — Complete Guide (2026)
Convert rune to string in Go with string(r). Convert string to rune slice with []rune(s). Covers Unicode, utf8 package, for range iteration, and rune vs byte.
Go: Convert String to Int (and Int to String) — Complete Guide (2026)
Convert string to int in Go using strconv.Atoi, strconv.ParseInt, fmt.Sscanf. Convert int to string with strconv.Itoa, FormatInt, Sprintf. All methods compared.
Fix 'declared and not used' Error in Go (2026)
Fix Go's 'declared and not used' compile error. Learn why Go enforces this, how to use the blank identifier _, and common cases like loop variables and error returns.
Fix: "function main is undeclared in the main package" in Go
Fix the Go error "runtime.main_main·f: function main is undeclared in the main package". Covers all 5 causes with code examples and step-by-step solutions.