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

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.

主站蜘蛛池模板: 庆安县| 高唐县| 竹溪县| 来安县| 麟游县| 朝阳区| 邳州市| 五河县| 阳东县| 黔江区| 井研县| 常宁市| 汉寿县| 安阳市| 信宜市| 安阳市| 门头沟区| 锡林郭勒盟| 布拖县| 沿河| 德令哈市| 昭平县| 垣曲县| 托克逊县| 邻水| 桦甸市| 隆尧县| 云龙县| 巴彦淖尔市| 昔阳县| 永福县| 龙海市| 班戈县| 邓州市| 盐边县| 商洛市| 互助| 福鼎市| 莱芜市| 修武县| 桓台县|