What are we going to do in this chapter?
In this section we are going to do a little bit of set up on our local machines so that we are able to run build compile go projects.
Here is a diagram of the flow that we are going to go through.
Let us start off by installing go enviroment .
download go installer
First ,I am going to open a new broser tab and navigate to go office website.
click here : Go
You will find a couple of download links at the top of this page, Find your appropriate operating system and download the installer.
For example, my operating system is on windows,so i clicked the first option.
Now we are done with grabing go installer.
Begin the installation of Go
Double click the file that you download.
No matter what operating system you on, The Installer that you download looks very similar to something like this.
It is very simple ,just keep clicking "Next" all the way.
Let us ensure that go has been installed correctly.
Let us open up a terminal, and type simple command like this "go"
and then click "enter"
After you run the go command ,if you see a long help message like this that means there were no issues during the go installation process
In the next chapter ,we are talking about how to install cursor.
The original video and subtitles
Video: 003 Environment Setup
Subtitles:
Now that we've been through all the administrative stuff that we need to cover let's get started with
a little bit of environments set up in this section we're going to do a little bit of set up on our
local machines so that we are able to run build and compile go projects.
So here's a diagram of the flow that we're going to go through.
Well first start off by installing go.
So this is the actual Go run time this is what allows us to build compile and execute go code after
we install the go run time we'll then install a code editor called vs code.
Now I want to be 100 percent clear here.
VS code is an optional part of this course.
You do not have to use VS code if you do not want to.
So if you are using atom or Sublime Text or web storm already and you're really happy with those that's
totally fine.
But I'm going to say that I highly recommend that you try out vs code vs code and practice works very
similarly to Sublime Text and atom.
So if you're familiar with either of those editors you'll be OK with the code.
Now the reason that I'm recommending vs code is that it has one of the best integrations with go around
so you can set up other editors to work nicely with go but the best integration I have found is with
the US Code.
So we use VS code it's going to make our lives debugging.
Writing formatting all this kind of stuff around go is just going to make it a lot easier for us.
So again you don't have to use it but I highly recommend you give it a chance.
After we install the go runtime and the code will then get to the fun part where we actually write some
code so that will be our first project and it's really going to be a pretty good sized project that
we'll use to get a real survey of a lot of different features inside the go language.
So that's pretty much all we have to do for our environment setup.
Without any further ado let's just dump Jai.
Scuse me.
Let's dive right in right now.
By installing the go run.
So going to pull up a link on the screen to get the go Layng installer.
Here it is right here.
I'm going to open up a new browser tab and navigate to go Langrigg slash DL once here.
You'll find a couple of different download links towards the top.
Or really I should say the center of the screen.
So find your appropriate operating system and grab the installer.
I'm on Mac OS Sun-God to get the Mac OS installer now no matter what operating system you on.
The installer that you download is going to look very similarly to something like this.
It's just a classic screen of clicking continue continue continue.
So on Mac OS I open up the installer or click Continue or click install.
I'm asked to put in my password no problem and then it goes off and starts doing the actual installation
process.
So let's pause right now because this usually takes a minute or two.
We'll take a quick break.
We'll come back in the next section and we'll also take care of setting up the visual studio code editor
previous page: Go学习系列文章声明
next page: Cursor installation and configuration