gobyexample/examples/multiple-return-values/multiple-return-values.sh
2022-12-14 19:47:29 +05:30

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.