官术网_书友最值得收藏!

go get

The go get is the utility provided by the standard library for package management. We can install a new package/library by running the following command:

$ go get git-server.com/user-name/library-we-need

This will download and build the source code and then install it as a binary executable (if it can be used as a standalone executable). The go get utility also installs all the dependencies required by the dependency retrieved for our project.

The  go get utility is a very simple tool. It will install the latest master commit on the Git repository. For simple projects, this might be enough. However, as projects start growing in size and complexity, keeping track of the version of dependency being used might become critical. Unfortunately,  go get is not great for such projects, and we might want to look at other package management tools.
主站蜘蛛池模板: 东安县| 成都市| 宁强县| 涟水县| 漳州市| 尖扎县| 绩溪县| 平定县| 广饶县| 宁晋县| 抚松县| 昔阳县| 绥化市| 漠河县| 长治县| 疏附县| 枣阳市| 宁化县| 长阳| 华蓥市| 巩留县| 逊克县| 怀化市| 东阳市| 克东县| 罗平县| 龙海市| 河间市| 额敏县| 玉溪市| 和平区| 崇阳县| 浑源县| 二连浩特市| 宜君县| 大英县| 绥棱县| 霍山县| 衡南县| 平度市| 宜章县|