mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Update Go modules to require Go 1.21 and replace ioutil with io package in reader.go
This commit is contained in:
@@ -1 +1,3 @@
|
||||
module github.com/google/brotli/go/brotli
|
||||
|
||||
go 1.21
|
||||
@@ -9,7 +9,6 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
"unsafe"
|
||||
)
|
||||
@@ -127,5 +126,5 @@ func Decode(encodedData []byte) ([]byte, error) {
|
||||
func DecodeWithRawDictionary(encodedData []byte, dictionary []byte) ([]byte, error) {
|
||||
r := NewReaderWithOptions(bytes.NewReader(encodedData), ReaderOptions{RawDictionary: dictionary})
|
||||
defer r.Close()
|
||||
return ioutil.ReadAll(r)
|
||||
return io.ReadAll(r)
|
||||
}
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
module github.com/google/brotli/go/cbrotli
|
||||
|
||||
go 1.21
|
||||
|
||||
Reference in New Issue
Block a user