Перейти к содержимому

How Go Actually Works: Goroutines, Channels, Scheduler & Garbage Collector Explained

Truly Coding

0:00 / 0:00

How Go Actually Works: Goroutines, Channels, Scheduler & Garbage Collector Explained

23 просмотра · 10 дн. назад
Truly Coding
77 подписчиков
23 просмотра · 10 дн. назад
How does Go actually work? See what's inside every Go binary - the runtime, scheduler and garbage collector - and how slices, interfaces, goroutines and channels really behave, explained visually in 11 minutes. In this video you'll learn: • What go build does: modules, the compiler, and single static binaries • The Go runtime that ships inside every program • Value semantics, slices (pointer, length, capacity) and maps • Interfaces, the nil interface trap, and errors as values • Goroutines and the G-M-P scheduler: how Go runs millions of tasks • Channels, select, deadlocks, mutexes, context and the race detector • Escape analysis, growable stacks and Go's concurrent garbage collector Chapters: 0:00 Intro: how Go really works 0:44 What Go is 1:29 Step 1: go build and the toolchain 2:21 Step 2: The runtime inside your binary 3:04 Step 3: Values, structs and zero values 3:45 Step 4: Slices 4:26 Maps and strings 5:08 Step 5: Interfaces 5:52 Errors, defer and panic 6:38 Stack, heap and escape analysis 7:17 Step 6: Goroutines and the scheduler 8:03 Channels and select 8:47 Mutexes, context and the race detector 9:29 Step 7: The garbage collector 10:12 Recap ▶ Watch all 60 Shorts in this series:    • Go Lang -Full Course Free   🔔 Subscribe for more developer deep dives: https://www.youtube.com/@trulycoding?... This Go tutorial explains how Golang works under the hood, for developers coming from Python, JavaScript, Java or C++. Understanding the runtime, goroutine scheduler, slices and interfaces makes Go's simplicity click, and it's exactly what backend and cloud engineering interviews ask about. #golang #go #programming