1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-07 03:47:13 +01:00
Files
installer/vendor/github.com/go-openapi/swag/string_bytes.go
Rafael Fonseca d4e6184ecc update vendor
2024-06-13 22:10:40 +02:00

9 lines
206 B
Go

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))
}