I think your solution, generating handles yourself and passing them to C instead of Go pointers, is about as good as it gets.
I think your solution, generating handles yourself and passing them to C instead of Go pointers, is about as good as it gets.