Environment Setup

Stephen Grider
A free video tutorial from Stephen Grider
Engineering Architect
4.7 instructor rating • 29 courses • 817,112 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 May 2021

  • 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 environment setup 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. We'll first start off by installing go. So this is the actual go runtime. This is what allows us to build, compile and execute go code after we install the go runtime. Well, then install a code editor called VSE Code. Now, I want to be 100 percent clear here. The code is an optional part of this course. You do not have to use VTS code if you do not want to. So if you are using Adam 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 VX code, VX 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 VX code. Now, the reason that I'm recommending VX 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 VX code. So when we use VX code, it's going to make our lives debugging, writing, formatting, all this kind of stuff around go. It's 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 VX 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 set up. Without any further ado, let's just excuse me. Let's dive right in right now by installing the GO runtime. So I'm going to pull up a link on the screen to get the go installer. Here it is right here. I'm going to open up a new browser tab and navigate to go galangal. Once a year, 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, so I'm going to get the Mac OS installer. Now, no matter what operating system you are 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 in Mac OS, I'm going to open up the installer. I'll click, continue a 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.