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

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.
主站蜘蛛池模板: 宣化县| 扎鲁特旗| 迁西县| 灌云县| 通渭县| 鹤壁市| 安丘市| 古浪县| 涞水县| 怀仁县| 无为县| 漠河县| 静海县| 永康市| 古蔺县| 牙克石市| 永丰县| 广德县| 庆安县| 日照市| 重庆市| 方山县| 霍城县| 马龙县| 马龙县| 东阿县| 长春市| 华亭县| 莆田市| 保靖县| 五原县| 苍溪县| 大名县| 巴塘县| 长泰县| 巴林左旗| 额敏县| 金塔县| 宜川县| 芮城县| 太白县|