mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 04:48:29 +08:00
fix: coding style and file format for all example.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import "os"
|
||||
|
||||
func main() {
|
||||
os.Stdout.WriteString("hello, world\n")
|
||||
f, _ := os.OpenFile("test", os.O_CREATE|os.O_WRONLY, 0)
|
||||
defer f.Close()
|
||||
f.WriteString("hello, world in a file\n")
|
||||
}
|
||||
package main
|
||||
|
||||
import "os"
|
||||
|
||||
func main() {
|
||||
os.Stdout.WriteString("hello, world\n")
|
||||
f, _ := os.OpenFile("test", os.O_CREATE|os.O_WRONLY, 0)
|
||||
defer f.Close()
|
||||
f.WriteString("hello, world in a file\n")
|
||||
}
|
||||
|
Reference in New Issue
Block a user