added fetch member function.

This commit is contained in:
5elenay
2021-08-24 14:16:42 +03:00
parent 202d6093a7
commit 4c4cc5c0a5
2 changed files with 37 additions and 1 deletions

View File

@@ -36,7 +36,6 @@ func (c Client) Request(method, path string, data []byte) ([]byte, error) {
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
if err != nil {
return []byte{}, err