go_dart_ffi_example
go_dart_ffi_example copied to clipboard
func SendToPort(port int64, msg int64, data string) { var obj C.Dart_CObject obj._type = C.Dart_CObject_kInt64 // cgo does not support unions so we are forced to do this *(*C.int64_t)(unsafe.Pointer(&obj.value[0])) = C.int64_t(msg)...
Is it possible to send back a struct from the Go function to Dart? Could you add an example to send a struct from Go to Dart and how to...
Fixed: https://github.com/mraleph/go_dart_ffi_example/issues/1 Added README changes Added .gitignore Added macOS specific comments
I use macOS Catalina 10.15.6. go version: go1.14.5 darwin/amd64 I cloned this repo to my local machine and when I try to compile the code it throws: ```shell go build...