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

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.

主站蜘蛛池模板: 山阳县| 藁城市| 温州市| 濉溪县| 迁安市| 来凤县| 米易县| 绩溪县| 黎平县| 高清| 会泽县| 紫阳县| 乌什县| 融水| 南涧| 枝江市| 寻乌县| 封丘县| 恩施市| 来安县| 馆陶县| 普格县| 宜州市| 沾化县| 偃师市| 柘城县| 阿巴嘎旗| 岳阳市| 大埔区| 玛纳斯县| 塔城市| 昌宁县| 绩溪县| 汉沽区| 聂拉木县| 孝感市| 平湖市| 社旗县| 济阳县| 陵川县| 思茅市|