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

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.

主站蜘蛛池模板: 陆良县| 黑龙江省| 罗甸县| 伊宁市| 永德县| 和顺县| 合川市| 沧源| 沁水县| 武平县| 阿坝县| 三都| 扎鲁特旗| 吴江市| 开化县| 旌德县| 体育| 沧州市| 永平县| 新乡市| 闵行区| 南陵县| 绍兴市| 岳西县| 五寨县| 宜川县| 贵定县| 大田县| 自贡市| 来安县| 体育| 眉山市| 二连浩特市| 宝清县| 定南县| 景德镇市| 高州市| 北海市| 沁源县| 开鲁县| 依安县|