Golang

0.0(0)
studied byStudied by 0 people
0.0(0)
call with kaiCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

flashcard set

Earn XP

Description and Tags

General knowledge about the golang programming language

Last updated 9:25 PM on 12/31/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

a lightweight thread of execution managed by the Go runtime, allowing concurrent programming.

A goroutine is ?

2
New cards

typically 2 KB, which can grow as needed.

The memory size of a goroutine is ?

3
New cards

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 ?

4
New cards

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 ?

5
New cards

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 ?

6
New cards