Drop references to io/ioutil (#403)

io/ioutil has been deprecated for a while.
Replace all uses of it with equivalent APIs.
This commit is contained in:
Abhinav Gupta
2023-12-10 15:40:40 -08:00
committed by GitHub
parent 923c202213
commit 7391017a8c
6 changed files with 10 additions and 14 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package kong
import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
@@ -17,7 +16,7 @@ func TestConfigFlag(t *testing.T) {
Flag string
}
w, err := ioutil.TempFile("", "")
w, err := os.CreateTemp("", "")
assert.NoError(t, err)
defer os.Remove(w.Name())
w.WriteString(`{"flag": "hello world"}`) //nolint: errcheck