Skip to content

Commit

Permalink
Deprecated ioutil.ReadAll() replaced to io.ReadAll()
Browse files Browse the repository at this point in the history
Since Go 1.16, ioutil.ReadAll() is deprecated.
  • Loading branch information
metal3d committed Aug 2, 2023
1 parent ad10f34 commit f219340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/adwaita_colors_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"fmt"
"go/format"
"image/color"
"io/ioutil"
"io"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -108,7 +108,7 @@ func main() {
log.Fatal(err)
}
defer reps.Body.Close()
htpage, err := ioutil.ReadAll(reps.Body)
htpage, err := io.ReadAll(reps.Body)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit f219340

Please sign in to comment.