To document my learning in Golang, here are some basic syntax rules for Golang functions.
* A function can take zero or more arguments
* The types comes after the variable name
func add(x, y int) int {
return x, y
}
// func add(x int, y int) int is also fine
func