replace deprecated io/ioutil

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-11-02 22:55:22 +01:00
parent e3509fc1de
commit f8b3af78fc
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
33 changed files with 113 additions and 202 deletions

View file

@ -1,7 +1,6 @@
package middleware
import (
"io/ioutil"
"os"
"testing"
@ -41,7 +40,7 @@ pZeMRablbPQdp8/1NyIwimq1VlG0ohQ4P6qhW7E09ZMC
-----END RSA PRIVATE KEY-----
`
file, err := ioutil.TempFile("", "pkey")
file, err := os.CreateTemp("", "pkey")
if err != nil {
t.Fatal("File cannot be created")
}