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

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.
主站蜘蛛池模板: 花垣县| 电白县| 大洼县| 清水县| 客服| 南投县| 洛隆县| 大新县| 南宁市| 鄂尔多斯市| 麻城市| 乐都县| 上思县| 乌审旗| 汉中市| 上饶市| 镇沅| 泸溪县| 平遥县| 长葛市| 泌阳县| 高阳县| 英德市| 易门县| 庄河市| 邮箱| 巴中市| 灵台县| 巧家县| 赤壁市| 长宁区| 宣威市| 洪雅县| 会同县| 绥宁县| 阿尔山市| 张家口市| 沙坪坝区| 新巴尔虎左旗| 葫芦岛市| 平顶山市|