mirror of
https://github.com/bitcoin/bips.git
synced 2026-04-27 16:38:39 +00:00
BIP-158: replace deprecated io/ioutil with os.ReadFile
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
@@ -164,7 +163,7 @@ func main() {
|
|||||||
|
|
||||||
writerFile = writer
|
writerFile = writer
|
||||||
|
|
||||||
cert, err := ioutil.ReadFile(defaultBtcdRPCCertFile)
|
cert, err := os.ReadFile(defaultBtcdRPCCertFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Couldn't read RPC cert: ", err.Error())
|
fmt.Println("Couldn't read RPC cert: ", err.Error())
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user