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

GOPATH

Programmers tend to work on many projects and it is good practice to have the source code separate from nonprogramming-related files. It is a common practice to have the source code in a separate location or workspace. Every programming language has its own conventions on how the language-related projects should be set up and Go is no exception to this.

GOPATH is the most important environment variable the developer has to set. It tells the Go compiler where to find the source code for the project and its dependencies. There are conventions within the GOPATH that need to be followed, and they have to deal with folder hierarchies.

主站蜘蛛池模板: 阿克| 上高县| 六枝特区| 城口县| 昌图县| 肇东市| 娄烦县| 普陀区| 普格县| 平陆县| 伽师县| 秦安县| 丹棱县| 天全县| 同心县| 龙山县| 军事| 格尔木市| 富源县| 江西省| 南丰县| 嘉黎县| 泽普县| 广汉市| 镇原县| 崇州市| 滨州市| 洪湖市| 陇南市| 黔西县| 凌海市| 盐源县| 鄢陵县| 宁河县| 克什克腾旗| 康马县| 老河口市| 辽中县| 响水县| 错那县| 罗甸县|