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

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.

主站蜘蛛池模板: 精河县| 同江市| 叙永县| 广河县| 泗洪县| 新密市| 陇南市| 新巴尔虎右旗| 乌兰浩特市| 沈丘县| 永寿县| 罗平县| 福泉市| 彰化县| 天峨县| 出国| 曲松县| 茌平县| 隆德县| 绥阳县| 铜梁县| 广饶县| 宜川县| 华蓥市| 泰来县| 六枝特区| 孙吴县| 景东| 邵阳县| 宜兰县| 青铜峡市| 洞口县| 正安县| 康马县| 疏勒县| 盐山县| 安西县| 昆山市| 栾川县| 合水县| 灵璧县|