remove refs to deprecated io/ioutil

This commit is contained in:
nikk gitanes
2023-07-10 03:14:53 +03:00
parent 4c41f7ddcc
commit 1d875b57b2
8 changed files with 18 additions and 20 deletions

View File

@@ -3,8 +3,8 @@ package auth
import (
"encoding/base64"
"encoding/json"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"reflect"
"strings"
@@ -28,7 +28,7 @@ func SetupAuth(engine *gin.Engine) *gin.RouterGroup {
}
func getAccounts() gin.Accounts {
buf, err := ioutil.ReadFile(filepath.Join(settings.Path, "accs.db"))
buf, err := os.ReadFile(filepath.Join(settings.Path, "accs.db"))
if err != nil {
return nil
}