On Sun, Aug 5, 2018 at 12:05 PM nicolas_boiteux via golang-nuts <
[email protected]> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.