Answers for "Named return values in golang"

Go
0

Named return values in golang

func split(sum int) (x, y int) {
  x = sum * 4 / 9
  y = sum - x
  return
}
Posted by: Guest on December-29-2021

Browse Popular Code Answers by Language