Function with return value



examples/function-return/function_return.go
package main

import (
    "fmt"
)

func main() {
    res := add(2, 3)
    fmt.Println(res)
}

func add(a, b int) int {
    return a + b
}

5