mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| package parse | ||||
|  | ||||
| import ( | ||||
| 	"io/ioutil" | ||||
| 	"os" | ||||
| 	"testing" | ||||
|  | ||||
| @@ -61,7 +60,7 @@ func TestHostPortOrFile(t *testing.T) { | ||||
| 		}, | ||||
| 	} | ||||
|  | ||||
| 	err := ioutil.WriteFile("resolv.conf", []byte("nameserver 127.0.0.1\n"), 0600) | ||||
| 	err := os.WriteFile("resolv.conf", []byte("nameserver 127.0.0.1\n"), 0600) | ||||
| 	if err != nil { | ||||
| 		t.Fatalf("Failed to write test resolv.conf") | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user