mirror of
https://github.com/coredns/coredns.git
synced 2025-11-20 19:02:16 -05:00
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package sign
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -50,7 +49,7 @@ $ORIGIN example.org.
|
||||
@ IN SOA linode miek.miek.nl. ( 1282630060 4H 1H 7D 4H )
|
||||
IN NS linode
|
||||
`
|
||||
if err := ioutil.WriteFile("db.apex-test.example.org", []byte(apex), 0644); err != nil {
|
||||
if err := os.WriteFile("db.apex-test.example.org", []byte(apex), 0644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.Remove("db.apex-test.example.org")
|
||||
|
||||
Reference in New Issue
Block a user