Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
fix: replace deprecated ioutils package with io
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoor-mirza committed Aug 1, 2023
1 parent 53fe58a commit 0f4db80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nozl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
)

Expand Down Expand Up @@ -35,7 +35,7 @@ func (c *Client) SendMessage(msg *Message) ([]byte, error) {
return nil, err
}

body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)

if err != nil {
fmt.Println(err.Error())
Expand Down

0 comments on commit 0f4db80

Please sign in to comment.