func add(a int, b int) int {
c := a + b
return c
}
func main() {
fmt.Println(add(2, 1))
}
//=> 3
package main
import "fmt"
func add(int x, int y) int {
return x + y
}
func main() {
fmt.Println(add(42, 13))
}
Notice that the type comes after the variable name