Does 3rd party go library need to be recompiled when I use them?

huangapple go评论73阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年2月3日 13:42:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75331917.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定