Skip to main content
TyperLab
Beta
Home
Learn
Practice
Code Typing
Leaderboard
Progress
EN
RU
Go Typing Practice
Open course
Go / Syntax / Conditions
Status switch
2 / 2
—
CPM
—
Accuracy
0
Errors
00:00
Time
status-switch.go
Start typing to begin
Help
A−
30
A+
Tab ⇥
Enter ↵
Start typing to begin
Start typing to begin switch status { case "new": fmt.Println("create user") case "active": fmt.Prin
1
s
w
i
t
c
h
s
t
a
t
u
s
{
2
c
a
s
e
"
n
e
w
"
:
3
f
m
t
.
P
r
i
n
t
l
n
(
"
c
r
e
a
t
e
u
s
e
r
"
)
4
c
a
s
e
"
a
c
t
i
v
e
"
:
5
f
m
t
.
P
r
i
n
t
l
n
(
"
s
e
n
d
e
m
a
i
l
"
)
6
d
e
f
a
u
l
t
:
7
f
m
t
.
P
r
i
n
t
l
n
(
"
s
k
i
p
"
)
8
}
Go
0 CPM
0 WPM
—
0 errors
00:00
0 / 129
Previous
2 / 2
Next exercise