ioutil is deprecated

This commit is contained in:
wh1te909 2024-01-26 07:08:18 +00:00
parent fdde16cf56
commit 3eb3586c0f
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import (
)
var (
version = "3.5.1"
version = "3.5.2"
log = logrus.New()
)

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
@ -20,7 +20,7 @@ func GetConfig(cfg string) (db *sqlx.DB, r DjangoConfig, err error) {
}
}
jret, _ := ioutil.ReadFile(cfg)
jret, _ := os.ReadFile(cfg)
err = json.Unmarshal(jret, &r)
if err != nil {
return