gofmt go code and update code style

This commit is contained in:
vcaesar 2019-03-16 09:23:52 -04:00
parent d280b98394
commit 8d588443b3

View File

@ -804,12 +804,12 @@ func ToBitmapBytes(bit C.MMBitmapRef) []byte {
if int(len) < 0 {
return nil
}
bs := C.GoBytes(unsafe.Pointer(ptr), C.int(len))
C.free(unsafe.Pointer(ptr))
return bs
}
// ToMMBitmapRef trans CBitmap to C.MMBitmapRef
func ToMMBitmapRef(bit CBitmap) C.MMBitmapRef {
return C.MMBitmapRef(bit)