Udemy

Environment Setup

A free video tutorial from Stephen Grider
Engineering Architect
Rating: 4.6 out of 5Instructor rating
37 courses
1,424,679 students
Environment Setup

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 July 2024

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 [CC]
Instructor: 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 setup 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, we'll then install a code editor called a VSCode. Now I wanna be 100% clear here, VSCode is an optional part of this course. You do not have to use VSCode if you do not want to. So if you are using Atom or Sublime Text or WebStorm already and you're really happy with those, that's totally fine. But I'm gonna say that I highly recommend that you try out VSCode. VSCode in practice, works very similarly to Sublime Text and Atom. So if you're familiar with either of those editors, you'll be A-OK with VSCode. Now the reason that I am recommending VSCode, 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 VSCode. So when we use VSCode, it's going to make our lives debugging, writing, formatting, all this kind of stuff around Go, it is just gonna 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 VSCode, we'll then get to the fun part, where we actually write some code. And 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 dive, let's, excuse me, let's dive right in right now, by installing the Go Runtime. So I'm gonna pull up a link on the screen to get the Golang Installer. Here it is right here. I'm going to open up a new browser tab and navigate to golang.org/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, so I'm gonna 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 on Mac OS, I'm gonna open up the installer. I'll click Continue, I'll 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, 'cause 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.