From 121b428a7a56253d3fee252fa846ac5dbbb44158 Mon Sep 17 00:00:00 2001
From: Rob Pike break, continue,
-f, err := os.Open(name, os.O_RDONLY, 0)
+f, err := os.Open(name)
if err != nil {
return err
}
@@ -520,7 +520,7 @@ statements, the resulting code needs no else statements.
-f, err := os.Open(name, os.O_RDONLY, 0)
+f, err := os.Open(name)
if err != nil {
return err
}
@@ -813,7 +813,7 @@ canonical examples are unlocking a mutex or closing a file.
// Contents returns the file's contents as a string.
func Contents(filename string) (string, os.Error) {
- f, err := os.Open(filename, os.O_RDONLY, 0)
+ f, err := os.Open(filename)
if err != nil {
return "", err
}
@@ -2675,7 +2675,7 @@ field for recoverable failures.
for try := 0; try < 2; try++ {
- file, err = os.Open(filename, os.O_RDONLY, 0)
+ file, err = os.Open(filename)
if err == nil {
return
}
--
2.52.0