Replies: 1 comment
-
The panic is pretty self-explanatory. If you're using C import there isn't much use for purego. If you still want to you can create a function in C that takes arguments and then constructs the struct and calls the function you want. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear purego community,
I am trying to learn how to pass a Go struct to a C function through FFI. Please see my code below
When I run the code above I get the following error:
Please advice
thank you very much
Beta Was this translation helpful? Give feedback.
All reactions