3 ms·
You're linking to a thread that's a year and half old. I'm actually in the process of learning Go and if you pay attention to what the language developers want
by rartichoke 14y ago
You're linking to a thread that's a year and half old. I'm actually in the process of learning Go and if you pay attention to what the language developers want to do with the language you would have known that embedding Go into C or any other language's apps is a priority to them.
There's a Youtube video where the main guys are on stage answering questions for an hour from a few months ago. They have plans to allow what you want and there are also hacky (but fully working) ways to do it now.
Also keep in mind that the problem is only 1 way. You can embed C into Go right now without issues. There's something about the Go runtime that requires it to be executed from its own main() function, that is what they are working on changing, but you can do things atm to get around that. I don't know the details because it isn't something I'm doing.