Skip to content

Commit 4bbf8f9

Browse files
committed
Avoid use of deprecated io/ioutil
1 parent 6157035 commit 4bbf8f9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sql-migrate/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"flag"
77
"fmt"
8-
"io/ioutil"
98
"os"
109
"runtime/debug"
1110

@@ -45,7 +44,7 @@ type Environment struct {
4544
}
4645

4746
func ReadConfig() (map[string]*Environment, error) {
48-
file, err := ioutil.ReadFile(ConfigFile)
47+
file, err := os.ReadFile(ConfigFile)
4948
if err != nil {
5049
return nil, err
5150
}

0 commit comments

Comments
 (0)