pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.67k stars 208 forks source link

all: Replace use of deprecated io/ioutil package #899

Closed JRaspass closed 9 months ago

JRaspass commented 10 months ago

As of 1.16 (which is the lowest we support) the io and os packages contain all the same functionality.

Additionally two uses of ioutil.TempDir() in tests can be replaced with the simpler t.TempDir() to automatically handle cleanup.

Explanation of what this pull request does.

More detailed description of the decisions being made and the reasons why (if the patch is non-trivial).


Paste benchstat results here