I'm working with some existing code that is C based. I'd like to add some new functionality but would prefer to write this new functionality in GO instead of C.
In this C code, is it possible to invoke a function call (with a few parameters) that is implemented in GO? I'm guessing minimally I'd need to create a .o file for the GO code (not sure if this is possible) and then hope the linking of C and GO code works. Is this an option? Steps?
If the above isn't an option, might there be some other way to blend the C code with new code written in GO? (The C code is dozens of .c and .h files and 20k lines of code-- so rewriting isn't practical).
Thanks