13 lines
278 B
Bash
13 lines
278 B
Bash
$ go run multiple-return-values.go
|
|
3
|
|
7
|
|
7
|
|
7 10
|
|
|
|
# Naked return statements should be used only in short
|
|
# functions.
|
|
# They can harm readability in longer functions.
|
|
|
|
# Accepting a variable number of arguments is another nice
|
|
# feature of Go functions; we'll look at this next.
|