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

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.

主站蜘蛛池模板: 麻阳| 衡山县| 嘉兴市| 政和县| 长海县| 正安县| 陆丰市| 吴堡县| 多伦县| 新巴尔虎左旗| 宿州市| 清新县| 龙陵县| 藁城市| 多伦县| 宁海县| 宜君县| 盐城市| 泰宁县| 平山县| 百色市| 晋城| 江都市| 温宿县| 灌阳县| 茌平县| 武乡县| 洱源县| 宜丰县| 麦盖提县| 迁西县| 闵行区| 乌鲁木齐市| 晋州市| 南召县| 三明市| 大荔县| 独山县| 正镶白旗| 若羌县| 遂川县|