Files
node-problem-detector/vendor/github.com/go-openapi/swag/string_bytes.go
Ciprian Hacman 0f1ee66855 Update dependencies
Signed-off-by: Ciprian Hacman <chacman@microsoft.com>
2025-04-14 16:52:20 +03: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))
}