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
Hi All,
I am learning golang and in the process i am trying to decode the buffer
sent from a C client to a structure in golang.
however that fails , please guide me through the process. The communication
uses UNIX domain socket, between a c program and a golang process.
C structure.
struct er