diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-09-16 15:15:24 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-09-20 17:22:33 +0300 |
commit | d1884b6fae4b65893d3e99be13510648da0b576f (patch) | |
tree | 9159dcbea2c73e6aa3eac44c68e7bef7e5bbcdd9 /_support | |
parent | 127ca6b9de8d5cca31db5e2345519cf39b0a0e29 (diff) |
global: Replace deprecated usage of `ioutil.ReadFile()`
With Go 1.16, the ioutil package was deprecated. Replace our usage of
`ioutil.ReadFile()` with `os.ReadFile()` to adapt accordingly.
Diffstat (limited to '_support')
-rw-r--r-- | _support/noticegen/noticegen.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/_support/noticegen/noticegen.go b/_support/noticegen/noticegen.go index 2a43002ad..0d54f221a 100644 --- a/_support/noticegen/noticegen.go +++ b/_support/noticegen/noticegen.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "flag" - "io/ioutil" "log" "os" "os/exec" @@ -66,7 +65,7 @@ func main() { return nil } - t, err := ioutil.ReadFile(path) + t, err := os.ReadFile(path) if err != nil { log.Fatal(err) } |