diff options
| author | MDK <[email protected]> | 2023-09-26 14:12:04 +0800 |
|---|---|---|
| committer | MDK <[email protected]> | 2023-09-26 14:12:04 +0800 |
| commit | 4c63d78e4e42aece5e5eaa6e111e7d5fc20aabb8 (patch) | |
| tree | 4341188fd10890724936b4d129ce0a958daf79c9 /utils/httpdns_utils.go | |
| parent | 4fcf28804c88ed090d96f737db7814cce44ac1fd (diff) | |
the project structure modified and new features added
Diffstat (limited to 'utils/httpdns_utils.go')
| -rw-r--r-- | utils/httpdns_utils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/httpdns_utils.go b/utils/httpdns_utils.go index 11c891d..ba8ce8d 100644 --- a/utils/httpdns_utils.go +++ b/utils/httpdns_utils.go @@ -5,7 +5,7 @@ import ( "crypto/des" "encoding/hex" "fmt" - "io/ioutil" + "io" "net/http" ) @@ -75,7 +75,7 @@ func SendTencentHttpdnsQuery() { } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { fmt.Printf("read content failed. Error: %s\n", err) return @@ -102,7 +102,7 @@ func SendAlicloudHttpdnsQurey() { } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { fmt.Printf("read content failed. Error: %s\n", err) return |
