📅  最后修改于: 2022-03-11 14:45:00.572000             🧑  作者: Mango
// Function with int as return type
func add(x int, y int) int {
total := 0
total = x + y
return total
}
func main() {
// Accepting return value in varaible
sum := add(20, 30)
fmt.Println(sum)
}