c-for-go
c-for-go copied to clipboard
How to read char* value from Deref()
Hello, I got a C function returns struct like this:
typedef struct Result {
char *version;
} Result;
struct Result init(void);
With generated go is
type Result struct {
Version []byte
ref67033404 *C.Result
allocs67033404 interface{}
}
And Deref() does't set the Len for the Version []byte, So is there any way to read Version out since i can not get the length,
Thanks.