1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-24 18:10:50 +00:00
Beego/vendor/github.com/go-redis/redis/internal/util/unsafe.go
2018-07-30 12:05:51 +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))
}