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

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.

主站蜘蛛池模板: 福鼎市| 新闻| 咸宁市| 龙山县| 洛宁县| 洛扎县| 通化县| 霍邱县| 仪陇县| 雅安市| 五原县| 兰坪| 寻乌县| 江西省| 台湾省| 牟定县| 亚东县| 喜德县| 辽宁省| 庐江县| 邵武市| 疏勒县| 醴陵市| 筠连县| 灌南县| 南澳县| 长海县| 萍乡市| 红安县| 错那县| 罗源县| 邵阳市| 池州市| 鄯善县| 江津市| 昌平区| 丰都县| 延川县| 巴彦县| 岳阳县| 营山县|