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

Installing a program for use

Installing a program is similar to building one but, instead of running go build, you run go install. You can run it inside a directory, pass it an absolute directory path, and pass it a directory path relative to the $GOPATH environment variable or on a file directly. Once a program has been installed, it goes into your $GOBIN, which you should have already set. You should have already added $GOBIN to your $PATH as well so that you can run the installed programs directly from your command line no matter what directory you are currently in. Installing is totally optional, but it is convenient for certain programs, especially for the ones you want to save or use frequently.

主站蜘蛛池模板: 饶平县| 石阡县| 久治县| 伊通| 永修县| 晋中市| 肥东县| 黑水县| 青海省| 蓬莱市| 得荣县| 独山县| 富宁县| 特克斯县| 塔河县| 宝山区| 松阳县| 长岭县| 建平县| 祁连县| 波密县| 榆中县| 巴南区| 阿拉善右旗| 方正县| 鄂伦春自治旗| 左权县| 兴义市| 闸北区| 黎平县| 化州市| 鹿泉市| 简阳市| 潍坊市| 凤台县| 金阳县| 酉阳| 海南省| 武安市| 泰顺县| 旬阳县|