How To Install Go on a Mac
Ready to start programming with Go? We'll help you get started.
In this video, we'll show you how to download and install Go on your Mac computer. We'll walk you through modifying your bash profile, setting up environment and bin variables, creating nested directories, and testing your installation with sample code. You'll also learn some of the benefits of using an open-source programming language. If you want to jump to a specific task, here's a breakdown:
Intro: Overview of Setting Up Go Locally 0:00
Task 1 Download Installer from The Go Programming Language 0:33
Task 2 Run installer with default settings 1:24
Task 3 Confirm installation using command line 2:02
Task 4 Set up bash profile 3:02
Task 5 Create a workspace directory 4:22
Task 6 Create src folder inside workspace directory 4:45
Task 7 Create and navigate inside directory called hello 5:06
Task 8 Create file hello.go using touch command 5:18
Task 9 Open hello.go in code editor; paste script provided on the installation page 5:45
Task 10 Build .go file using Go tool 6:10
Task 11 Execute go file 6:28
Want to learn more about Go? Check out our related content below.
- Learn Go: https://bit.ly/3AhG7LQ
- 5 Reasons To Learn Go: https://bit.ly/3QXzHsf
Join the millions learning to code with Codecademy.
Learn to code: https://bit.ly/3wiPj1G
Check out our full course catalog: https://bit.ly/3cfRs7d
More videos
Learn more on Codecademy
- Course
Learn Git & GitHub
Use our beginner friendly Git course to integrate Git and GitHub and manage versions of your projects using Git branches.With CertificateBeginner Friendly4 hours - Course
Learn the Command Line
Learn about the command line, starting with navigating and manipulating the file system, and ending with redirection and configuring the environment.With CertificateBeginner Friendly4 hours - Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours