mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	Replace k8s.io/utils/strings/slices by Go stdlib slices (#6863)
Use the functionality provided by the Go standard library slices package since Go 1.21 instead of the deprecated functions in the k8s.io/utils/strings/slices package. Signed-off-by: Tobias Klauser <tobias@isovalent.com>
This commit is contained in:
		| @@ -4,13 +4,12 @@ import ( | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"net" | ||||
| 	"slices" | ||||
|  | ||||
| 	"github.com/coredns/caddy" | ||||
| 	"github.com/coredns/coredns/core/dnsserver" | ||||
| 	"github.com/coredns/coredns/plugin" | ||||
| 	"github.com/coredns/coredns/plugin/pkg/log" | ||||
|  | ||||
| 	"k8s.io/utils/strings/slices" | ||||
| ) | ||||
|  | ||||
| func setup(c *caddy.Controller) error { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user