[chore] - ioutil.ReadFile is deprecated (#753)

* Use os.ReadFile.

* Update imports.

* remove unused import.
This commit is contained in:
ahrav
2022-08-30 09:41:12 -07:00
committed by GitHub
parent fa2d6b90cd
commit 37c4eea66a
92 changed files with 208 additions and 213 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
@@ -77,7 +76,7 @@ func mustWriteTemplates(jobs []templateJob) {
// Write the files from templates.
for _, job := range jobs {
tmplBytes, err := ioutil.ReadFile(job.TemplatePath)
tmplBytes, err := os.ReadFile(job.TemplatePath)
if err != nil {
log.Fatal(err)
}