1/5
General knowledge about the golang programming language
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
a lightweight thread of execution managed by the Go runtime, allowing concurrent programming.
A goroutine is ?
typically 2 KB, which can grow as needed.
The memory size of a goroutine is ?
A channel is a built-in data structure in Go that facilitates communication between goroutines, allowing them to send and receive values safely. A channel is define by the golang struct hchan. It’s a circular buffer with mutex allowing data integrity.
What is a channel in golang ?
A select statement in Go is a control structure that allows to wait on multiple communication operations, selecting one that is ready to proceed. It enables handling of multiple channels and is useful for synchronizing between goroutines. If two or more events occur at the same time, the select statement will choose one at random to execute.
what is a select statement in golang ?
A context in Go is a type that carries deadlines, cancellation signals, and other request-scoped values across API boundaries and goroutines. It is used to manage the lifecycle of operations and to pass cancellation signals to multiple goroutines.
what is a context in golang ?