mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-27 20:45:56 +00:00
Replace uses of ioutil
ioutil package was deprecated in Go 1.16, replace all uses with their respective replacements. This patch was generated with a combination of `gofmt -r`, `eg`, and manually (for `ioutil.ReadDir`).
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"crypto/tls"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"net/smtp"
|
||||
"os"
|
||||
@@ -568,7 +567,7 @@ func realMain(m *testing.M) int {
|
||||
}
|
||||
} else {
|
||||
// Generate certificates in a temporary directory.
|
||||
tmpDir, err := ioutil.TempDir("", "chasquid_test:")
|
||||
tmpDir, err := os.MkdirTemp("", "chasquid_test:")
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to create temp dir: %v\n", tmpDir)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user