named return value in Go
Go's return values may be named. If so, they are treated as variables defined at the top of the function. ``` func split(sum int) (x, y int) { x = sum * 4 / 9 y = sum - x return } ```
Go's return values may be named. If so, they are treated as variables defined at the top of the function. ``` func split(sum int) (x, y int) { x = sum * 4 / 9 y = sum - x return } ```