Update golang to 1.20 (#316)

* Update golang to 1.20

* Fix workflow file to make it work on `1.20`

* Update fieldalignment to 0.24.0

* Remove depricated ioutils

ioutils was depricatd and removed, same API available at `os` and `io`
packages now.
This commit is contained in:
Dmitry Kropachev
2025-04-25 13:34:40 -04:00
committed by GitHub
parent 439a1ba517
commit 643d2e775e
6 changed files with 23 additions and 16 deletions

View File

@@ -10,7 +10,6 @@ import (
"fmt"
"io"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
"regexp"
@@ -208,7 +207,7 @@ func applyMigration(ctx context.Context, session gocqlx.Session, f fs.FS, path s
return err
}
b, err := ioutil.ReadAll(file)
b, err := io.ReadAll(file)
file.Close()
if err != nil {
return err