1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

add go mysql redis sample

Signed-off-by: vishal979 <shantapowertech2@gmail.com>
This commit is contained in:
vishal979 2020-07-04 19:38:53 +05:30
parent 638c159abd
commit 207f73ab81
384 changed files with 233601 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// +build !appengine
package internal
import (
"reflect"
"unsafe"
)
func BytesToString(b []byte) string {
bytesHeader := (*reflect.SliceHeader)(unsafe.Pointer(&b))
strHeader := reflect.StringHeader{bytesHeader.Data, bytesHeader.Len}
return *(*string)(unsafe.Pointer(&strHeader))
}