re-vendor k8s.io/kube-openapi

This commit is contained in:
Jefftree
2024-08-27 01:58:39 +00:00
parent 6dc87bf173
commit ea2bdb6334
225 changed files with 4511 additions and 3476 deletions

8
vendor/github.com/go-openapi/swag/string_bytes.go generated vendored Normal file
View File

@@ -0,0 +1,8 @@
package swag
import "unsafe"
// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
func hackStringBytes(str string) []byte {
return unsafe.Slice(unsafe.StringData(str), len(str))
}