使用包是否需要使用”go get”命令?

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

Is go get needed in order to use packages

问题

需要在包上使用go get吗?我的代码在这里:https://github.com/retep-mathwizard/utils

我的包依赖于其他项目。

英文:

Is it needed to go get on packages? My code is here: https://github.com/retep-mathwizard/utils

My packages have dependencies on other items

答案1

得分: 1

go get会检出它们所需的依赖项。例如,当我通过以下方式获取您的一个软件包时:

go get github.com/retep-mathwizard/utils/convert

go还会获取skilstak资源,因为您的软件包依赖于它。

go get的文档中说:

Get会下载并安装由导入路径指定的软件包,以及它们的依赖项。

英文:

go get will checkout the needed dependencies for them. For instance when I go get one of your packages via:

go get github.com/retep-mathwizard/utils/convert

go also gets the skilstak resource because your package is dependent on it.

The go get documentation says:

Get downloads and installs the packages named by the import paths, along with their dependencies.

huangapple
  • 本文由 发表于 2016年3月12日 23:47:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/35959776.html
匿名

发表评论

匿名网友

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

确定