Skip to content

Stop using io/ioutil, deprecated in Go 1.16#216

Merged
jbkempf merged 4 commits into
videolabs:masterfrom
elboulangero:github/drop-ioutil
May 8, 2026
Merged

Stop using io/ioutil, deprecated in Go 1.16#216
jbkempf merged 4 commits into
videolabs:masterfrom
elboulangero:github/drop-ioutil

Conversation

@elboulangero
Copy link
Copy Markdown
Contributor

Most of the changes are drop-in replacements, so it's a fairly straightforward MR.

io/ioutil was deprecated in Go 1.16, let's stop using it.

This is a drop-in replacement, cf:
* https://pkg.go.dev/io/ioutil#TempFile
* https://pkg.go.dev/os#CreateTemp
io/ioutil was deprecated in Go 1.16, let's stop using it.

This is a drop-in replacement, cf:
* https://pkg.go.dev/io/ioutil#ReadAll
* https://pkg.go.dev/io#ReadAll
io/ioutil was deprecated in Go 1.16, let's stop using it.

The function testing.TempDir was added in Go 1.15, cf:
* https://pkg.go.dev/io/ioutil#TempDir
* https://pkg.go.dev/testing#T.TempDir
@jbkempf jbkempf merged commit 2430e10 into videolabs:master May 8, 2026
3 checks passed
@elboulangero elboulangero deleted the github/drop-ioutil branch May 8, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants