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

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.
主站蜘蛛池模板: 梨树县| 扎赉特旗| 阿克陶县| 闽侯县| 炎陵县| 南乐县| 灯塔市| 舟曲县| 分宜县| 怀来县| 江北区| 宁乡县| 富平县| 叙永县| 襄汾县| 自贡市| 哈巴河县| 鹤峰县| 宜良县| 鹤岗市| 霍山县| 遂宁市| 攀枝花市| 阿荣旗| 新安县| 鄂托克前旗| 华池县| 甘孜| 松原市| 苍南县| 嘉兴市| 金平| 轮台县| 华亭县| 简阳市| 岑溪市| 浏阳市| 临汾市| 湘潭县| 肥西县| 乐清市|