Remove usages of io.ReadFile and os.WriteFile to be compatible with 1.15

This commit is contained in:
nytpu
2021-03-21 07:36:04 -06:00
parent a6914cb410
commit 69a7ab13ff
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -12,6 +12,7 @@ package core
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
@@ -116,7 +117,7 @@ Watching these pages for any changes that occur.
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
`
err := os.WriteFile(path, []byte(rawPage), 0666)
err := ioutil.WriteFile(path, []byte(rawPage), 0666)
if err != nil {
return err
}
@@ -161,7 +162,7 @@ func (d *FullData) WriteFeed(dataPath string) error {
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
`
err := os.WriteFile(path, []byte(rawPage), 0666)
err := ioutil.WriteFile(path, []byte(rawPage), 0666)
if err != nil {
return err
}