feat: init project

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-24 16:42:04 +08:00
parent caae41500c
commit a4dccb8504
17 changed files with 284 additions and 388 deletions
+1 -2
View File
@@ -19,7 +19,6 @@ import (
"context"
"encoding/json"
"io"
"io/ioutil"
"net/http"
urllib "net/url"
"time"
@@ -41,7 +40,7 @@ func Get(url string) (response []byte, err error) {
return nil, err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}