just compile the go program to a c-archive or c-shared object
go build -buildmode=c-archive (or c-shared)
this one generates a .a object looks like
this one generates a .a object looks like..
anyways if that's not what you want, please elaborate on this question
thanks man, lets test more here.
it's like this here go build -buildmode = c-archive but to generate .h => but if the c-archive works it is already valid .. That is.. I generate the .a for the GO build and use it in C
Обсуждают сегодня