Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 227 Bytes
package main
import "fmt"
// a simple add function with to arguments
// and an int as return value
func add(a int, b int) int {
return a + b
func main() {
// call the function
result := add(1, 2)
You can’t perform that action at this time.