go-tour/functions.go
2020-02-04 21:44:36 -06:00

12 lines
122 B
Go

package main
import "fmt"
func add(x int, y int) int {
return x + y
}
func main() {
fmt.Println(add(42, 13))
}