Hi,
at the first we would like to thank you for provide us a Go SDK for Cryptlex.
But I got problem when accessing Custom License Field with Go, it seems GetCustomLicenseField only accept C.char type (for fieldValue parameter), with C.char it’s going well, but I only got the first character. for example the value should be “my@email.com” but I only got “m”. here’s my code
var fieldValue C.char
C. GetCustomLicenseField(C.CString(“300”), &fieldValue, 256)
result for fieldValue is “m”
When I used bytes.Buffer, it’s goes errors, here’s my code
fieldValue := new(bytes.Buffer)
C. GetCustomLicenseField(C.CString(“300”), &fieldValue, 256)
result for field value is “Cannot use &fieldValue (type **bytes.Buffer) as type *C.char in argument…”
any ideas?
thanks.