First, a naked return should only used in very short functions.
Return values in go can be named: (x, y int)
, then a return statement without arguments would return the named return values. This would look like so:
func split(sum in) (x, y int) {
x = sum * 2
y = x - 4
return
}