mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
Merge pull request #10 from zhanming/master
fix source code use ascii double quotes .
This commit is contained in:
@@ -49,8 +49,8 @@ Go 中的包模型采用了显式依赖关系的机制来达到快速编译的
|
|||||||
|
|
||||||
如果需要多个包,它们可以被分别导入:
|
如果需要多个包,它们可以被分别导入:
|
||||||
|
|
||||||
import “fmt”
|
import "fmt"
|
||||||
import “os”
|
import "os"
|
||||||
|
|
||||||
或:
|
或:
|
||||||
|
|
||||||
@@ -247,9 +247,9 @@ Example 4.4 [gotemplate.go](examples/chapter_4/gotemplate.go)
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
import (
|
import (
|
||||||
“fmt”
|
"fmt"
|
||||||
)
|
)
|
||||||
const c = “C”
|
const c = "C"
|
||||||
var v int = 5
|
var v int = 5
|
||||||
type T struct{}
|
type T struct{}
|
||||||
func init() { // initialization of package
|
func init() { // initialization of package
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
“fmt”
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
const c = “C”
|
const c = "C"
|
||||||
|
|
||||||
var v int = 5
|
var v int = 5
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user