it returns :

.\armago_x64.go:19: cannot convert p (type **_Ctype_char) to type uintptr

I am a little lost with this conversion, I do not understand how the 
iterator should work. I hope there was a simple command like GoString to do 
it.


Le dimanche 5 août 2018 12:16:13 UTC+2, Jan Mercl a écrit :
>
> On Sun, Aug 5, 2018 at 12:05 PM nicolas_boiteux via golang-nuts <
> golan...@googlegroups.com <javascript:>> wrote:
>
> > Do you know a standard method to iterate & convert all the argv array in 
> one golang string array ?
>
> Something like (not tested):
>
> var a []string
> for p := argv; *p != nil; p = 
> (**C.char)(unsafe.Pointer(uintptr(p)+unsafe.Sizeof(*p))) {
>         a = append(a, C.GoSting(*p))
> }
>
> -- 
>
> -j
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to