3

Please give me example (code) how to import into main.go a .so file made gccgo?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
user2614682
  • 193
  • 2
  • 14

2 Answers2

1

Go does not yet support dynamic code loading (i.e. plugins). There are plans to add support in the future, but no set time table at this point:

https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/preview

James Henstridge
  • 42,244
  • 6
  • 132
  • 114
0

You can't dynamically load Go "dlls", yet.

OneOfOne
  • 95,033
  • 20
  • 184
  • 185