docs: change io/ioutil to io/os packages
Change io/ioutil to io/os packages because io/ioutil package
is deprecated from 1.16:
TempDir => os.MkdirTemp
Details:
Fixes:
@@ -286,7 +286,7 @@ func TestSomething(t *testing.T) {
assert := assert.New(t)
// Create a temporary directory
- tmpdir, err := ioutil.TempDir("", "")
+ tmpdir, err := os.MkdirTemp("", "")
assert.NoError(err)
// Delete it at the end of the test
