Hello i have a little problem to convert a C char array to a string array in golang.
https://community.bistudio.com/wiki/Extensions func RVExtensionArgs(output *C.char, outputsize C.size_t, input *C.char, argv **C.char, argc C.size_t) { temp := fmt.Sprintf("Hello %s %d %s!", C.GoString(input), argc, C. GoString(*argv) // return to C program, the string result := C.CString(temp) defer C.free(unsafe.Pointer(result)) var size = C.strlen(result) + 1 if size > outputsize { size = outputsize } C.memmove(unsafe.Pointer(output), unsafe.Pointer(result), size) } I did this code only to print the content of argv for test purpose. This code only return the first string of argv array. Do you know a standard method to iterate & convert all the argv array in one golang string array ? -- 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.