diff options
| author | nytpu <alex@nytpu.com> | 2021-03-21 07:36:04 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-03-21 07:36:04 -0600 |
| commit | 69a7ab13ffb4a3d851e21727683dbed1ccc0e469 (patch) | |
| tree | e3f91fafe9075be725c223ac2a192182f2632482 /core/entries.go | |
| parent | a6914cb4102b321130e321091ef0413ba2a15dc9 (diff) | |
Remove usages of io.ReadFile and os.WriteFile to be compatible with 1.15
Diffstat (limited to 'core/entries.go')
| -rw-r--r-- | core/entries.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |
