fix: coding style and file format for chapter 6.

This commit is contained in:
Bo-Yi Wu
2017-02-11 12:24:19 +08:00
parent 0dee646030
commit 72c3839734
11 changed files with 290 additions and 279 deletions

View File

@@ -1,18 +1,19 @@
// lambda_value.go
package main
import (
"fmt"
)
func main() {
fv := func() {
fmt.Println("Hello World!")
}
fv()
fmt.Printf("The type of fv is %T", fv)
}
/* Output:
Hello World!
The type of fv is func()
*/
// lambda_value.go
package main
import (
"fmt"
)
func main() {
fv := func() {
fmt.Println("Hello World!")
}
fv()
fmt.Printf("The type of fv is %T", fv)
}
/* Output:
Hello World!
The type of fv is func()
*/