blob: 0c899a127ebebcda81465db79102dd5519aad095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// anonymous functions2
// Make me compile!
// I AM NOT DONE
package main
import "fmt"
func main() {
var sayBye func(name string)
sayBye = func() {
fmt.Printf("Bye %s", n)
}
}
|