Environment Setup

Stephen Grider
A free video tutorial from Stephen Grider
Engineering Architect
4.7 instructor rating • 28 courses • 703,149 students

Learn more from the full course

Go: The Complete Developer's Guide (Golang)

Master the fundamentals and advanced features of the Go Programming Language (Golang)

08:52:03 of on-demand video • Updated November 2020

  • Build massively concurrent programs with Go Routines and Channels
  • Learn the advanced features of Go
  • Understand the differences between commonly used data structures
  • Prove your knowledge with dozens of included quiz questions
  • Apply Interfaces to dramatically simplify complex programs
  • Use types to future-proof your code and reduce the difficulty of refactors
English [Auto] 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 so I'll see you in just a minute.