chore: remove usage of ioutil (#642)

It was deprecated as of 1.17.
This commit is contained in:
Colin Adler
2022-03-29 14:59:32 -05:00
committed by GitHub
parent 8c0f109240
commit 3abb87ddb6
9 changed files with 28 additions and 27 deletions

View File

@ -4,7 +4,6 @@ import (
"bytes"
"database/sql"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
@ -81,7 +80,7 @@ func main() {
if !ok {
panic("couldn't get caller path")
}
err = ioutil.WriteFile(filepath.Join(mainPath, "..", "..", "dump.sql"), []byte(dump), 0600)
err = os.WriteFile(filepath.Join(mainPath, "..", "..", "dump.sql"), []byte(dump), 0600)
if err != nil {
panic(err)
}