Yup, as long as you build the go package as a c-shared you can basically do anything a C/C++ plugin can do. This contains a simple hello world for building a c-shared you can load in any C/C++ program. http://blog.ralch.com/tutorial/golang-sharing-libraries/
On Tuesday, March 13, 2018 at 4:15:25 PM UTC+8, nicolas...@yahoo.fr wrote: > > Do you mean we can for example build a GO .dll wich declare an entry point > usable by C/C++ game ? > > I can give it a try easily with ARMA game wich load those kind of > extension. > > Le mardi 13 mars 2018 08:39:02 UTC+1, alex....@gmail.com a écrit : >> >> To those talking about using game engines like unity etc... you can build >> go as c-shared and use it as a normal C/C++ plugin. >> The only thing to note is that you can't unload it without restarting the >> program and multiple c-shared go libraries wouldn't work together. >> >> As for what I'm using go for, I'm experimenting with coding a mostly go >> game engine (mostly cuz graphical input/output libraries are all in C/C++). >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.