Source file tour/basics/named-results.go
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 func split(sum int) (x, y int) { 8 x = sum * 4 / 9 9 y = sum - x 10 return 11 } 12 13 func main() { 14 fmt.Println(split(17)) 15 } 16
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 func split(sum int) (x, y int) { 8 x = sum * 4 / 9 9 y = sum - x 10 return 11 } 12 13 func main() { 14 fmt.Println(split(17)) 15 } 16