UnsafeString returns the byte slice as a volatile string THIS SHOULD ONLY BE USED BY THE CODE GENERATOR. THIS IS EVIL CODE. YOU HAVE BEEN WARNED.
(b []byte)
| 23 | // THIS IS EVIL CODE. |
| 24 | // YOU HAVE BEEN WARNED. |
| 25 | func UnsafeString(b []byte) string { |
| 26 | return *(*string)(unsafe.Pointer(&b)) |
| 27 | } |
| 28 | |
| 29 | // UnsafeBytes returns the string as a byte slice |
| 30 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…