Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jun 14, 2023
1 parent 88c8a81 commit 2ad61f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dns/dnsperfgo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package main
import (
"flag"
"fmt"
"io/ioutil"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"log"
"net"
"net/http"
Expand All @@ -31,6 +29,8 @@ import (
"syscall"
"time"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"golang.org/x/net/context"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -82,7 +82,7 @@ func main() {
func hostnamesFromConfig(config *Config) []string {
var hostnamesArr []string
if config.hostnameFile != "" {
contents, err := ioutil.ReadFile(config.hostnameFile)
contents, err := os.ReadFile(config.hostnameFile)
if err != nil {
log.Fatalf("Failed to read input file %q, err - %v, Exiting.", config.hostnameFile, err)
}
Expand Down

0 comments on commit 2ad61f7

Please sign in to comment.