Interfaces, Goroutines & Channels. Interfaces. // Interface — implicit implementation (no "implements") type Animal interface { Sound() string Name() string } type Dog struct{ name string } func (d Dog) Sound() string { …
ReadGo Interview Questions. Q: What makes Go different from other languages?. Go's key differentiators: (1) Built-in concurrency with goroutines (cheap, ~2KB stack) and channels. (2) Compiles to a single static binary — no r…
ReadGo — Core Language. Basics. package main import ( "fmt" "strings" "strconv" ) func main() { // Variable declaration var name string = "Alice" age := 28 // short declaration (type inferred) var x, y int = 1, 2 var isActiv…
ReadGo Interview Questions. Goroutines vs threads? Goroutines are lightweight (2KB stack, grows as needed) vs OS threads (1MB+). Scheduled by Go runtime (M:N threading), not OS. Millions can run concurrently. Communicate via…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever