Skip to content
Permalink
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)
fmt.Println(result)
}
You can’t perform that action at this time.