From 69a7ab13ffb4a3d851e21727683dbed1ccc0e469 Mon Sep 17 00:00:00 2001 From: nytpu Date: Sun, 21 Mar 2021 07:36:04 -0600 Subject: Remove usages of io.ReadFile and os.WriteFile to be compatible with 1.15 --- core/entries.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/entries.go') diff --git a/core/entries.go b/core/entries.go index 223ecb9..8beee91 100644 --- a/core/entries.go +++ b/core/entries.go @@ -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 } -- cgit v1.2.3