Skip to content

Commit

Permalink
Update min Go version to 1.21.
Browse files Browse the repository at this point in the history
Per the release policy [1], versions earlier than Go 1.21 are
no longer supported now that 1.23 has been released.

Also remove deprecated usage of ioutil.

[1] https://go.dev/doc/devel/release#policy
  • Loading branch information
diwakergupta committed Oct 1, 2024
1 parent a0aeda1 commit 8371482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module github.com/ghostiam/binstruct

go 1.13
go 1.21

require (
github.com/davecgh/go-spew v1.1.1
github.com/stretchr/testify v1.3.0
)

require github.com/pmezard/go-difflib v1.0.0 // indirect
3 changes: 1 addition & 2 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"math"
)

Expand Down Expand Up @@ -93,7 +92,7 @@ type reader struct {
}

func (r *reader) ReadAll() ([]byte, error) {
b, err := ioutil.ReadAll(r)
b, err := io.ReadAll(r)

if r.debug {
fmt.Printf("ReadAll(): %s", hex.Dump(b))
Expand Down

0 comments on commit 8371482

Please sign in to comment.