Skip to content

Commit

Permalink
Remove the reference of the ioutil package
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Sep 28, 2023
1 parent 692adc2 commit 39d9962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"io/ioutil"
"os"
"regexp"
"runtime"
Expand All @@ -26,7 +25,7 @@ func printHosts() {
hostsFile = sysRoot + `\System32\drivers\etc\hosts`
}

hostsBytes, err := ioutil.ReadFile(hostsFile)
hostsBytes, err := os.ReadFile(hostsFile)
if err != nil {
log.Error(err, "read hosts file error")
return
Expand Down

0 comments on commit 39d9962

Please sign in to comment.