I\'m trying to learn Golang using \"The Go Programming Language\" and I\'ve reached the section on slices. They make the comparison between arrays and slices in that two arr
a slice contains a pointer to the memory holding the elements, a length for available elements count, and a capability for how big the memory. so it like:
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
I think it is indirect, because the elements are referenced by pointer.
and of course we can have the slice itself in void *data.