@@ -20,7 +20,6 @@ import (
2020 goErr "errors"
2121 "flag"
2222 "fmt"
23- "io/ioutil"
2423 "net"
2524 "os"
2625 "regexp"
@@ -385,7 +384,7 @@ func generateFiles() {
385384 }
386385 leafTests .WriteString ("----\n \n " )
387386 }
388- ioutil .WriteFile (testPath + "/leaves" , leafTests .Bytes (), 0666 )
387+ os .WriteFile (testPath + "/leaves" , leafTests .Bytes (), 0666 )
389388
390389 // Generate the "leaves-via-network" input file, which tests
391390 // formatting for leaf-only error types after being brought over
@@ -405,7 +404,7 @@ func generateFiles() {
405404 }
406405 leafTests .WriteString ("----\n \n " )
407406 }
408- ioutil .WriteFile (testPath + "/leaves-via-network" , leafTests .Bytes (), 0666 )
407+ os .WriteFile (testPath + "/leaves-via-network" , leafTests .Bytes (), 0666 )
409408
410409 // Leaf types for which we want to test all wrappers:
411410 wrapperLeafTypes := []string {"fmt" , "goerr" , "nofmt" , "pkgerr" , "newf" }
@@ -449,7 +448,7 @@ func generateFiles() {
449448 }
450449 wrapTests .WriteString ("----\n \n " )
451450 }
452- ioutil .WriteFile (
451+ os .WriteFile (
453452 fmt .Sprintf (testPath + "/wrap-%s" , leafName ),
454453 wrapTests .Bytes (), 0666 )
455454 }
@@ -490,7 +489,7 @@ func generateFiles() {
490489 }
491490 wrapTests .WriteString ("----\n \n " )
492491 }
493- ioutil .WriteFile (
492+ os .WriteFile (
494493 fmt .Sprintf (testPath + "/wrap-%s-via-network" , leafName ),
495494 wrapTests .Bytes (), 0666 )
496495 }
0 commit comments