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

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.

主站蜘蛛池模板: 沈丘县| 津市市| 延寿县| 达拉特旗| 洪雅县| 宁强县| 承德县| 宁河县| 彭州市| 彩票| 晋宁县| 潜江市| 彩票| 武清区| 民丰县| 北安市| 房产| 新沂市| 益阳市| 湖口县| 清苑县| 白银市| 抚顺市| 黎平县| 天水市| 洪雅县| 建始县| 通江县| 拜城县| 和平县| 新蔡县| 金坛市| 云安县| 晋江市| 贞丰县| 司法| 页游| 堆龙德庆县| 和硕县| 柘城县| 东安县|