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/CAA40n-UCTF6U-fa-652vXMM_dc9AFfufZo1YQ%2BBEAniCcJp4HA%40mail.gmail.com.

Reply via email to