dart:ffi how to describe in dart GoString and GoSlice structures generated by go

Here (gist) dart and go code with generated header file.
i tried with Utf8 class from sqlite example, it’s seems work.
calling add 1, 2: 3
calling cosine 2pi: 1.0
callin log��U��o��U�����U@�o��UP�o��U��o��UP�o��Uf��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U`�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U
1

Author: Fantashit

1 thought on “dart:ffi how to describe in dart GoString and GoSlice structures generated by go

Comments are closed.