Skip to main content
TyperLab
Beta
Home
Learn
Practice
Code Typing
Leaderboard
Progress
EN
RU
Go Typing Practice
Open course
Go / Concurrency / Select
Select with context
1 / 1
—
CPM
—
Accuracy
0
Errors
00:00
Time
select-with-context.go
Start typing to begin
Help
A−
30
A+
Tab ⇥
Enter ↵
Start typing to begin
Start typing to begin select { case item := <-items: return item, nil case <-ctx.Done(): return Item
1
s
e
l
e
c
t
{
2
c
a
s
e
i
t
e
m
:
=
<
-
i
t
e
m
s
:
3
r
e
t
u
r
n
i
t
e
m
,
n
i
l
4
c
a
s
e
<
-
c
t
x
.
D
o
n
e
(
)
:
5
r
e
t
u
r
n
I
t
e
m
{
}
,
c
t
x
.
E
r
r
(
)
6
}
Go
0 CPM
0 WPM
—
0 errors
00:00
0 / 95
Previous
1 / 1
Next exercise