13 func main() {
14 hello := []byte("hello, world\n")
15 file.Stdout.Write(hello)
-16 file, err := file.Open("/does/not/exist", 0, 0)
-17 if file == nil {
+16 f, err := file.Open("/does/not/exist", 0, 0)
+17 if f == nil {
18 fmt.Printf("can't open file; err=%s\n", err.String())
19 os.Exit(1)
20 }
func main() {
hello := []byte("hello, world\n")
file.Stdout.Write(hello)
- file, err := file.Open("/does/not/exist", 0, 0)
- if file == nil {
+ f, err := file.Open("/does/not/exist", 0, 0)
+ if f == nil {
fmt.Printf("can't open file; err=%s\n", err.String())
os.Exit(1)
}