Skip to content

Commit

Permalink
fix: change os.ReadFile to ioutil.ReadFile for go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
navetacandra committed Sep 5, 2024
1 parent ff64503 commit 02ee3e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package server
import (
"compress/gzip"
"fmt"
"io/ioutil"
"io"
"encoding/json"
"log"
Expand Down Expand Up @@ -274,7 +275,7 @@ func FindUser(username string) AuthInfo {

var authInfo []AuthInfo
var user AuthInfo
content, err := os.ReadFile(DefaultConfig.AuthInfoFilePath)
content, err := ioutil.ReadFile(DefaultConfig.AuthInfoFilePath)
if err != nil {
log.Print(err)
}
Expand Down

0 comments on commit 02ee3e4

Please sign in to comment.