Skip to content

Commit 82d3c16

Browse files
Merge pull request #1328 from akazwz:go
PiperOrigin-RevId: 815626477
2 parents 4876ada + e4e56a3 commit 82d3c16

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

go/brotli/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
module github.com/google/brotli/go/brotli
2+
3+
go 1.21

go/brotli/reader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"bytes"
1010
"errors"
1111
"io"
12-
"io/ioutil"
1312
"strconv"
1413
"unsafe"
1514
)
@@ -127,5 +126,5 @@ func Decode(encodedData []byte) ([]byte, error) {
127126
func DecodeWithRawDictionary(encodedData []byte, dictionary []byte) ([]byte, error) {
128127
r := NewReaderWithOptions(bytes.NewReader(encodedData), ReaderOptions{RawDictionary: dictionary})
129128
defer r.Close()
130-
return ioutil.ReadAll(r)
129+
return io.ReadAll(r)
131130
}

go/cbrotli/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
module github.com/google/brotli/go/cbrotli
2+
3+
go 1.21

0 commit comments

Comments
 (0)