gitlab.com/evatix-go/core@v1.3.55/converters/UnsafeBytesToStringPtr.go (about) 1 package converters 2 3 import ( 4 "unsafe" 5 ) 6 7 func UnsafeBytesToStringPtr(unsafeBytes []byte) *string { 8 if unsafeBytes == nil { 9 return nil 10 } 11 12 return (*string)(unsafe.Pointer(&unsafeBytes)) 13 }