Go by Example - Multiple Return Values
Go by Example - Multiple Return Values
com/multiple-return-values
package main
import "fmt"
The (int, int) in this function signature shows func vals() (int, int) {
that the function returns 2 ints. return 3, 7
}
func main() {
$ go run multiple-return-values.go
3
7
7
1 of 1 11/26/24, 23:34