Programming

Anonymous function in Go

steloflute 2012. 8. 13. 18:00

http://play.golang.org/p/-4W6KrrnNG

 

package main

import "fmt"

func main() {
 fmt.Println("Hello, 世界")

 (func(x int) { fmt.Println(x) })(5)
}