That works.  The problem I had earlier with a panic was caused by my C
library which was returning null as an error condition.  Once the C code
was fixed it worked as you said.

Thanks.

On Thu, Apr 30, 2020 at 2:18 PM Jan Mercl <0xj...@gmail.com> wrote:

> On Thu, Apr 30, 2020 at 10:06 PM Dean Schulze <dean.w.schu...@gmail.com>
> wrote:
> >
> > That gives this error (which I've gotten with just about everything I
> try):
> >
> > cannot use &p.mach_name (type *[25]_Ctype_char) as type *_Ctype_char in
> argument to _Cfunc_GoString
>
> Oh yeah, should have been probably `C.GoString(&p.hostname[0])`.
> Forgot Go has stronger type discipline than C. (Not tried still.)
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BLiX6E-snRZ2hzNt6MUJ20jBez18z2HVjsfVfW4eBQZAqFR4w%40mail.gmail.com.

Reply via email to