Understanding the Go Runtime: The Bootstrap
Summary
An in-depth look at what Go does before main runs, including the runtime bootstrap, the actual entry point, TLS initialization, CPU feature checks, and the initialization of the scheduler, memory allocator, and GC. The article explains why the Go binary is large and how the runtime provides a complete execution environment for goroutines before your code executes.