From the course: Learning the Go Standard Library

Setting up the environment - Go Tutorial

From the course: Learning the Go Standard Library

Start my 1-month free trial

Setting up the environment

- [Instructor] Before we begin, let's make sure that you have the GO environment set up on your computer. So here at the golang.org site, you're going to click on the Download Go button and that's going to take you to the download page and you're going to follow the instructions for your system to install Go. You can see that there's instructions for windows, Mac, Linux and of course there's the source code, if you want to go to the source code route. So once you've downloaded it and followed the instructions for your platform, open up a terminal window and on your system, you can use your terminal and to make sure the installation succeeded we're going to type go version and you should see a result similar to this one with a version number for Go this course was recorded with Go 1.15. So make sure you have at least that version installed on your system. Now, the only other thing you'll need for this course is a text editor and any text editor will work. So if you already have one that you like you can just use that one. Now I'm going to use visual studio code for this course because it's a free editor and it works across platforms. So let's go ahead and bring up visual studio code. And if you're going to use VS code, I strongly suggest that you install the Go extension pack that provides great support for code completion and formatting and other features that will just make the development experience better. So if we go to the extensions panel in VS code you can do a search on Go, and you can see that right here, that there's an extension. I'll click on it. It says the Go Team at Google and you can see it's got quite a few downloads. So this is the one that you want to install. I have also included example files for the course and you can put them anywhere that you want on your computer that's easy to access. Now I put mine on the desktop, but that's not required. So if we take a look inside the exercise files folder, so let's open this up. So if we take a look inside the exercise files folder you'll find the exercises organized by chapter and within each chapter, there are folders that correspond to the finished and start versions of each of the examples. And if we look in the finished, you'll see that there are folders in here that correspond to each of the individual videos within the chapter. So I'm going to use the starting point to build towards the finished example for each video. And you can follow along with me in your own editor. That's pretty much all the setup that you need to do for this course. So once you have Go installed and you have your text editor chosen, then you're ready to go.

Contents