Skip to content

Commit

Permalink
chore: use io instead of io/ioutil since it's deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Alex committed Nov 4, 2024
1 parent e6acd63 commit e6e8032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sms/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"

Expand Down Expand Up @@ -36,7 +36,7 @@ func main() {
r.POST("/:channel", func(c *gin.Context) {
channel := c.Param("channel")

jsonByteData, err := ioutil.ReadAll(c.Request.Body)
jsonByteData, err := io.ReadAll(c.Request.Body)
if err != nil {
log.Fatalf("Error reading body: %v", err)
}
Expand Down

0 comments on commit e6e8032

Please sign in to comment.