xxxxxxxxxx
func functionname(parametername type) returntype {
//function body
}
xxxxxxxxxx
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