Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 207 Bytes
package main
import "fmt"
func main() {
// inline function aka anonymous function
add := func(x int, y int) int {
return x + y
fmt.Println(add(1, 2))
func() {
fmt.Println("HELLO WORLD")
You can’t perform that action at this time.