Skip to main content
TyperLab
Beta
Home
Learn
Practice
Code Typing
Leaderboard
Progress
EN
RU
Go Typing Practice
Open course
Go / Patterns / Early Returns
Early return validation
1 / 1
—
CPM
—
Accuracy
0
Errors
00:00
Time
early-return-validation.go
Start typing to begin
Help
A−
30
A+
Tab ⇥
Enter ↵
Start typing to begin
Start typing to begin if input == "" { return ErrEmptyInput } return process(input)
1
i
f
i
n
p
u
t
=
=
"
"
{
2
r
e
t
u
r
n
E
r
r
E
m
p
t
y
I
n
p
u
t
3
}
4
5
r
e
t
u
r
n
p
r
o
c
e
s
s
(
i
n
p
u
t
)
Go
0 CPM
0 WPM
—
0 errors
00:00
0 / 63
Previous
1 / 1
Next exercise