the project structure modified and new features added

This commit is contained in:
MDK
2023-09-26 14:12:04 +08:00
parent 4fcf28804c
commit 4c63d78e4e
14 changed files with 174 additions and 47 deletions

View File

@@ -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