4
Advanced Go
In this chapter, we shift from learning the language to understanding it. The novice asks what a language can do; the experienced developer begins to ask why it behaves the way it does. Advanced Go is about common Go misconceptions, the Go garbage collector and scheduler, GOGC, GOMAXPROCS, profile-guided optimization, reflection, interfaces, and generics. In this chapter, we also discuss dates, times, workspaces, modules, and packages. These topics are not merely a collection of features but the essential machinery that governs how Go programs interact with the OS and memory. By exploring why the scheduler distributes work across processors or why a specific interface implementation incurs overhead, we transform our intuition into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access