BIP-158: replace deprecated io/ioutil with os.ReadFile

This commit is contained in:
strmfos 2025-08-28 13:11:57 +02:00 committed by GitHub
parent 86b29c5d81
commit 0712585a1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
@ -164,7 +163,7 @@ func main() {
writerFile = writer
cert, err := ioutil.ReadFile(defaultBtcdRPCCertFile)
cert, err := os.ReadFile(defaultBtcdRPCCertFile)
if err != nil {
fmt.Println("Couldn't read RPC cert: ", err.Error())
return