VOOZH about

URL: https://www.digitalocean.com/community/tutorials/how-to-install-go-and-set-up-a-local-programming-environment-on-macos

⇱ How To Install Go and Set Up a Local Programming Environment on macOS | DigitalOcean


How To Install Go and Set Up a Local Programming Environment on macOS

Updated on January 11, 2023
Not using macOS 13?
Choose a different version or distribution.
macOS 13
πŸ‘ How To Install Go and Set Up a Local Programming Environment on macOS

Introduction

Go is a programming language that was born out of frustration. At Google, developers were tired of having to make tradeoffs when picking the language for a new project. Some languages executed efficiently but took a long time to compile, while others were easy to write but ran inefficiently in production. So Google invented Go and designed the language to have it all: fast compilation, fast execution, easy to write, and easy to deploy.

While Go is a versatile language that can be used for many kinds of projects, from web applications to command-line tools, it is particularly well suited for distributed systems and microservice architectures, earning it a reputation as the language of the cloud. It helps the modern programmer do more with a strong set of tooling, removing debates over formatting by making the format part of the language specification, as well as making deployment easy by compiling each program and all of its dependencies into a single binary. Go is easy to learn, with a very small set of keywords, which makes it a great choice for beginner and veteran developers alike.

In this introductory tutorial, you will install Go on your local macOS machine and run your first program to prove that the installation worked.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

Tutorial Series: How To Code in Go

Go (or GoLang) is a modern programming language originally developed by Google that uses high-level syntax similar to scripting languages. It is popular for its minimal syntax and innovative handling of concurrency, as well as for the tools it provides for building native binaries on foreign platforms.

About the author(s)

Gopher Guides is a training and consulting company specializing in Go and Go related technologies. Co-founder:s Mark Bates & Cory LaNou.

πŸ‘ Timothy Nolan
Timothy Nolan
Editor
Senior Technical Editor
See author profile

Former Senior Technical Editor at DigitalOcean, fiction writer and podcaster elsewhere, always searching for the next good nautical pun! Areas of expertise include Node.js, PostgreSQL, CSS, JavaScript.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Since the Ruby Homebrew installer is deprecated and has been rewritten in Bash. The install command,

  1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

should be replaced as,

  1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
πŸ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow β€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Β© 2026 DigitalOcean, LLC.Sitemap.
Dark mode is coming soon.