Go Setup Smarts

By pjain      Published July 29, 2019, 1:53 a.m. in blog Programming   

Go BPR, Setup

Setup Go toolchain (pkj did 1.6.2 on 5/22/16)

  1. Install go root package
  2. download osx pkg at https://golang.org/dl/
  3. just double click to run installer (just ~expands it to /usr/local/go tree)

    $ go version go version go1.9 darwin/amd64

Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile:

export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go

Setup Multiple Versions

It may be useful to have multiple Go versions installed on the same machine, for example, to ensure that a package's tests pass on multiple Go versions.

All Go versions available via this method are listed on the download page. You can find where each of these extra Go versions is installed by looking at its GOROOT; for example, go1.10.7 env GOROOT. To uninstall a downloaded version, just remove its GOROOT directory and the goX.Y.Z binary.

Once you have one Go version installed, you can install another (such as 1.10.7) as follows:

$ go get golang.org/dl/go1.10.7 $ go1.10.7 download The newly downloaded version can be used like go:

$ go1.10.7 version go version go1.10.7 linux/amd64

9z. Uninstalling Go

To remove an existing Go installation from your system delete the go directory, and remove the various go path variables etc from your .bash_profile


Comment 1 by vapormax June 6, 2020, 7:26 a.m.

I wish to convey my admiration for your kind-heartedness giving support to visitors who really need assistance with this content. Your very own dedication to getting the message around ended up being extremely insightful and have surely permitted girls just like me to attain their targets. Your new warm and helpful tips and hints indicates so much to me and further more to my fellow workers. Thank you; from each one of us.
vapormax [url=http://www.air-vapormax.com]vapormax[/url]

Comment 2 by moncler jackets June 8, 2020, 6:32 p.m.

Needed to draft you this very little remark so as to give thanks as before regarding the gorgeous guidelines you have documented above. It's so extremely generous with people like you to present freely precisely what most people could possibly have advertised for an e-book to generate some profit for themselves, precisely seeing that you might well have tried it if you wanted. The tactics as well acted to become a fantastic way to be aware that other individuals have the same dream the same as mine to find out very much more with reference to this matter. I'm sure there are lots of more fun periods up front for folks who take a look at your website.
moncler jackets

Comment 3 by kd shoes June 10, 2020, 10:30 p.m.

Thank you for your own effort on this web site. My aunt take interest in going through research and it's really obvious why. We hear all relating to the lively method you deliver practical strategies on the web site and as well as improve response from other people on that concern so our princess is actually understanding a whole lot. Take advantage of the remaining portion of the year. You are carrying out a very good job.
kd shoes

Comment 4 by yeezy boost June 16, 2020, 3:05 a.m.

I must show thanks to this writer for rescuing me from this type of condition. Just after scouting through the the web and seeing tips which are not beneficial, I was thinking my life was over. Living without the presence of solutions to the problems you have sorted out as a result of your posting is a serious case, and ones that could have negatively damaged my entire career if I had not noticed your web site. Your good mastery and kindness in maneuvering every item was tremendous. I'm not sure what I would've done if I hadn't come across such a subject like this. I'm able to at this point look forward to my future. Thanks a lot very much for your skilled and sensible guide. I won't be reluctant to refer your web blog to any individual who would need tips about this subject matter.
yeezy boost

Comment 5 by nike shox for men June 19, 2020, 8:32 a.m.

Thanks a lot for giving everyone an extremely breathtaking chance to read in detail from this website. It can be very awesome plus jam-packed with fun for me personally and my office colleagues to visit your blog no less than three times per week to study the latest guidance you have got. And of course, we're at all times pleased with the special tips you give. Selected 4 facts on this page are definitely the most beneficial I have ever had.
nike shox for men

Comment 6 by golden goose sneakers June 26, 2020, 9:25 p.m.

I simply desired to appreciate you again. I'm not certain the things that I might have followed without the suggestions shown by you concerning such question. It previously was an absolute frightful problem in my view, nevertheless encountering a new professional way you handled it forced me to leap with joy. I'm happier for your guidance and have high hopes you realize what an amazing job you are always accomplishing educating many others via your webpage. Most likely you've never got to know all of us.
golden goose sneakers

Comment 7 by supreme clothing June 29, 2020, 9:24 p.m.

I intended to write you a bit of word just to thank you so much once again for your personal great guidelines you've shared above. This has been so shockingly generous with you to grant publicly just what a lot of folks would've sold for an e-book to help with making some dough for themselves, even more so considering the fact that you might well have tried it in case you decided. The secrets additionally acted like a easy way to be sure that someone else have a similar dream just like my very own to see a good deal more with respect to this condition. I know there are lots of more pleasurable times in the future for individuals that read through your website.
supreme clothing

Comment 8 by jordan shoes July 4, 2020, 9:34 p.m.

I must show my thanks to you just for bailing me out of such a scenario. After scouting throughout the online world and getting concepts that were not productive, I believed my entire life was gone. Being alive without the solutions to the difficulties you've resolved all through your short article is a serious case, and ones which could have negatively affected my entire career if I hadn't noticed your blog post. Your actual expertise and kindness in playing with all things was invaluable. I am not sure what I would have done if I had not encountered such a step like this. I can also at this moment look forward to my future. Thanks a lot very much for the high quality and sensible guide. I won't be reluctant to refer your blog post to any individual who should receive support about this subject matter.
jordan shoes

Add new comment

Similar posts

Go Sample Full Apps

Go Quickstart

Go Reference, Cheatsheet

Go Concurrency 101