mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-28 20:56:03 +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:
@@ -17,7 +17,6 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math/big"
|
||||
"net"
|
||||
"net/textproto"
|
||||
@@ -235,7 +234,7 @@ func init() {
|
||||
log.Default.Level = log.Error
|
||||
|
||||
// Generate certificates in a temporary directory.
|
||||
tmpDir, err := ioutil.TempDir("", "chasquid_smtpsrv_fuzz:")
|
||||
tmpDir, err := os.MkdirTemp("", "chasquid_smtpsrv_fuzz:")
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("Failed to create temp dir: %v\n", tmpDir))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user