blob: 90745d5ca9f1b0d04e950e55c952addc6ed7793a (
plain)
| 1
2
3
4
5
6
7
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))
}
 |