csi-addons / kubernetes-csi-addons

CSI-Addons implementation and APIs for Kubernetes
Apache License 2.0
17 stars 33 forks source link

replace custom ContainsInSlice() with standard slices.Contains() #540

Closed nixpanic closed 3 months ago

nixpanic commented 3 months ago

With Go 1.21 the "slices" package can be used for many operations on slices. The custom ContainsInSlice() function can be replaced by the standard slices.Contains().