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

src/

This is the directory that will contain the source code of our projects and their dependencies. In general, we want our source code to have version control and be hosted on the cloud. It would also be great if we or anyone else could easily use our project. This requires a little extra setup on our part.

Let's imagine that our project is hosted at http://git-server.com/user-name/my-go-project. We want to clone and build this project on our local system. To make it properly work, we need to clone it to $GOPATH/src/git-server.com/user-name/my-go-project. When we build a Go project with dependencies for the first time, we will see that the src/ folder has many directories and subdirectories that contain the dependencies of our project.

主站蜘蛛池模板: 丰宁| 崇文区| 饶河县| 衡山县| 雷山县| 镇江市| 左权县| 金塔县| 深圳市| 新乐市| 临海市| 韶关市| 荆州市| 沂水县| 博白县| 贵南县| 鄂伦春自治旗| 行唐县| 富蕴县| 准格尔旗| 衡山县| 新巴尔虎左旗| 富阳市| 博客| 卢龙县| 景宁| 兴文县| 泗水县| 莲花县| 六枝特区| 犍为县| 广南县| 电白县| 吉水县| 论坛| 江达县| 余干县| 华蓥市| 平果县| 蚌埠市| 赤城县|