1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 08:30:55 +00:00
Beego/vendor/github.com/go-redis/redis/internal/util/unsafe.go

13 lines
185 B
Go
Raw Normal View History

2018-07-30 04:05:51 +00:00
// +build !appengine
package util
import (
"unsafe"
)
// BytesToString converts byte slice to string.
func BytesToString(b []byte) string {
return *(*string)(unsafe.Pointer(&b))
}