go-gallery/vendor/github.com/go-redis/redis/internal/util/unsafe.go
2018-04-18 14:16:29 +08:00

13 lines
185 B
Go

// +build !appengine
package util
import (
"unsafe"
)
// BytesToString converts byte slice to string.
func BytesToString(b []byte) string {
return *(*string)(unsafe.Pointer(&b))
}