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

Package management

In the days of yore, all programs were written from scratch—every utility function and every library to run the code had to written by hand. Now a days, we don't want to deal with the low level details on a regular basis; it would be unimaginable to write all the required libraries and utilities from scratch. Go comes with a rich library, which will be enough for most of our needs. However, it is possible that we might need a few extra libraries or features not provided by the standard library. Such libraries should be available on the internet, and we can download and add them into our project to start using them.

In the previous section, GOPATH, we discussed how all our projects are saved into qualified paths of the $GOPATH/src/git-server.com/user-name/my-go-project form. This is true for any and all dependencies we might have. There are multiple ways to handle dependencies in Go. Let's look at some of them.

主站蜘蛛池模板: 卫辉市| 河津市| 开阳县| 布尔津县| 余干县| 临泉县| 呼伦贝尔市| 阳西县| 镇雄县| 高阳县| 依安县| 五河县| 连南| 银川市| 寻甸| 阳山县| 嘉兴市| 霞浦县| 江永县| 化州市| 阳山县| 商丘市| 嘉鱼县| 遂宁市| 新余市| 常州市| 龙里县| 甘肃省| 吉安县| 阿合奇县| 忻城县| 湾仔区| 庆阳市| 韩城市| 盘锦市| 西昌市| 建德市| 葫芦岛市| 塔河县| 巩留县| 陈巴尔虎旗|