A hack until issue golang/go#2632 is fixed. See: https://github.com/golang/go/issues/2632
(b *[]byte)
| 30 | // A hack until issue golang/go#2632 is fixed. |
| 31 | // See: https://github.com/golang/go/issues/2632 |
| 32 | func bytesToString(b *[]byte) string { |
| 33 | return *(*string)(unsafe.Pointer(b)) |
| 34 | } |
| 35 | |
| 36 | func StringToBytes(s string) []byte { |
| 37 | b := make([]byte, 0, 0) |
nothing calls this directly
no outgoing calls
no test coverage detected