mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-11-13 17:36:12 +08:00
fix: coding style and file format for all example.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// hello_world1.go
|
||||
package main
|
||||
|
||||
func main() {
|
||||
println("Hello", "world")
|
||||
}
|
||||
|
||||
// hello_world1.go
|
||||
package main
|
||||
|
||||
func main() {
|
||||
println("Hello", "world")
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("%s", runtime.Version())
|
||||
}
|
||||
// Output:
|
||||
// go1.0.3 or go 1.1
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Printf("%s", runtime.Version())
|
||||
}
|
||||
|
||||
// Output:
|
||||
// go1.0.3 or go 1.1
|
||||
|
||||
Reference in New Issue
Block a user