summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/parse/v2/input.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-11-25 10:45:54 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-25 10:45:54 +0000
commitae1a98558acf1ff74979954d8279f45a8ba3593a (patch)
tree631d5282674b788b8ce6c7e91bfb3649f2fb418a /vendor/github.com/tdewolff/parse/v2/input.go
parent[feature] Add domain permission drafts and excludes (#3547) (diff)
downloadgotosocial-ae1a98558acf1ff74979954d8279f45a8ba3593a.tar.xz
[chore]: Bump github.com/tdewolff/minify/v2 from 2.21.1 to 2.21.2 (#3567)
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.21.1 to 2.21.2. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.21.1...v2.21.2) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/tdewolff/parse/v2/input.go')
-rw-r--r--vendor/github.com/tdewolff/parse/v2/input.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/tdewolff/parse/v2/input.go b/vendor/github.com/tdewolff/parse/v2/input.go
index 924f14f0c..586ad7306 100644
--- a/vendor/github.com/tdewolff/parse/v2/input.go
+++ b/vendor/github.com/tdewolff/parse/v2/input.go
@@ -2,7 +2,6 @@ package parse
import (
"io"
- "io/ioutil"
)
var nullBuffer = []byte{0}
@@ -18,7 +17,7 @@ type Input struct {
restore func()
}
-// NewInput returns a new Input for a given io.Input and uses ioutil.ReadAll to read it into a byte slice.
+// NewInput returns a new Input for a given io.Input and uses io.ReadAll to read it into a byte slice.
// If the io.Input implements Bytes, that is used instead. It will append a NULL at the end of the buffer.
func NewInput(r io.Reader) *Input {
var b []byte
@@ -29,7 +28,7 @@ func NewInput(r io.Reader) *Input {
b = buffer.Bytes()
} else {
var err error
- b, err = ioutil.ReadAll(r)
+ b, err = io.ReadAll(r)
if err != nil {
return &Input{
buf: nullBuffer,