github.com/RevenueMonster/sqlike@v1.0.6/sql/codec/helper.go (about) 1 package codec 2 3 import "unsafe" 4 5 func b2s(b []byte) string { 6 return *(*string)(unsafe.Pointer(&b)) 7 }