I started trying to integrate some C libraries into my Go code for a project using cgo and ran into a problem.
In one of the C functions, I need to pass argv to the function call. In C, argv has a pointer to an array of char strings (K & RC, §5.10), and I need to convert from a string slice to char **.
I had a good look, high and low for any information on how to do variable type conversions from Go to C, but there seems to be no documentation next to it. Any help would be appreciated.
source
share