mirror of
https://github.com/coredns/coredns.git
synced 2025-11-26 05:34:13 -05:00
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"crypto/ecdsa"
|
||||
"crypto/rsa"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
@@ -70,7 +70,7 @@ func readKeyPair(public, private string) (Pair, error) {
|
||||
if err != nil {
|
||||
return Pair{}, err
|
||||
}
|
||||
b, err := ioutil.ReadAll(rk)
|
||||
b, err := io.ReadAll(rk)
|
||||
if err != nil {
|
||||
return Pair{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user