英文:
Does 3rd party go library need to be recompiled when I use them?
问题
我是一个刚开始使用go
的初学者。我发现人们只需将go库推送到带有标签的github仓库中就可以发布。在发布时实际上并没有编译任何东西。除了源代码之外,没有任何构建产物。
当我使用第三方库时,会运行一个名为go get xxx
的命令。这个库会与我的源代码一起在我的本地编译吗?所以go没有任何已编译的库吗?
英文:
I am a starter to use go
. I found people publish go library just by pushing to github repo with a tag. It doesn't really compile anything when publishing. There is not any build artefact except source code.
When I use a 3rd party library, a command go get xxx
is called to run. Will the library be compiled in my local along with my source code together? So go doesn't have any compiled library?
答案1
得分: -2
第三方Go库在使用时需要重新编译。
这些库将与您的源代码一起在本地编译。
所以Go语言本身没有编译的库。
英文:
> Does 3rd party go library need to be recompiled when I use them?
Yes.
> Will the library be compiled in my local along with my source code together?
Yes.
> So go doesn't have any compiled library?
Basically no.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论