函数

func getSum(sum *int, n1, n2 int) {
    *sum = n1 + n2
}

var sum = 0
getSum(&sum, 53)
//sum is 8

fmt.Println("sum =", sum)