Thanks, I was able to solve the problem with the below code and changing
the type to byte.
if err := binary.Read(ConnErr, binary.BigEndian, &data); err
!= nil {
Log.ErrS("Error reading notification message",
log.KV{"err": err})
break
On Thu, Aug 16, 2018 at 5:29 AM wrote:
> char str[384];
> Str [384]string
The counterpart to C.char is uint8 aka byte. IOW
struct foo {
char bar[42];
}
corresponds to
type foo struct {
bar [42]byte
}
--
-j
--
You received this message because you are subscribed to the Go