Skip to content

Commit

Permalink
Move from ioutil to io
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Dec 15, 2022
1 parent b19acc3 commit a63a31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"regexp"
Expand Down Expand Up @@ -122,7 +122,7 @@ func addServer(server string) error {
return err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit a63a31c

Please sign in to comment.