mirror of
https://github.com/redis/go-redis.git
synced 2025-08-11 22:02:41 +03:00
13 lines
189 B
Go
13 lines
189 B
Go
// +build !appengine
|
|
|
|
package internal
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// BytesToString converts byte slice to string.
|
|
func BytesToString(b []byte) string {
|
|
return *(*string)(unsafe.Pointer(&b))
|
|
}
|