1. package main
    2. import "fmt"
    3. func main() {
    4. var a int
    5. var b int
    6. a = 3
    7. b = 2
    8. s := sum(a, b)
    9. fmt.Println(s)
    10. }
    11. func sum(num1 int, num2 int) int {
    12. return num1 + num2
    13. }
    1. 5