Skip to content

Commit

Permalink
Merge pull request #11 from diwakergupta/chore/update-go
Browse files Browse the repository at this point in the history
Update min Go version to 1.21.
  • Loading branch information
ghostiam authored Oct 1, 2024
2 parents a0aeda1 + 8371482 commit 121aa60
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 121aa60

Please sign in to comment.