2017-11-22 00:44

使用Go in C限制


Recently stumbled on this article about leveraging Go's shared library compiler in C and other languages:

I'm wondering what the limitations of the compiler use is? For example once compiled will Go's net and socket libraries all work as they would as a standalone Go application?

ie. could I theoretically have a Go application as the communication layer (lets say HTTP) and a C application performing some lower level processing which is handed to Go for delivery?

Sorry for the awkward explanation of the use case, simply trying to understand how Go would react in a compiled environment in general. I know very little about shared libraries at this level, so just a curiosity.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答