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

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.

主站蜘蛛池模板: 阿坝县| 榕江县| 汤原县| 阜阳市| 兴城市| 永年县| 康马县| 清新县| 荆门市| 香格里拉县| 喀喇| 文登市| 武安市| 淮阳县| 闵行区| 宣恩县| 澜沧| 科尔| 万州区| 疏勒县| 德保县| 义乌市| 双城市| 赣州市| 东明县| 五峰| 邻水| 常熟市| 古丈县| 手游| 南康市| 灵山县| 沙河市| 玉环县| 横峰县| 永州市| 广宁县| 施秉县| 织金县| 南溪县| 松滋市|