> ## Documentation Index
> Fetch the complete documentation index at: https://herd.laravel.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Go

# Managing Go

Herd serves [Laravel for Go](https://herd.laravel.com/docs/macos/guides/laravel-go.md) applications next to your PHP sites. Herd builds and runs these applications with your Go installation, so Go has to be installed on your Mac. You can install it and keep it up to date right from Herd.

Go is optional. If you don't work on Laravel for Go applications, you don't need to install it.

## Installing Go

Open the settings, go to "Runtimes" and select "Go". Click "Install" and Herd downloads the latest stable version of Go with its official installer from [go.dev](https://go.dev/dl/), checks the installer against its published checksum and installs it. The installation takes about a minute and needs about 240 MB of disk space. You can keep using Herd in the meantime.

![Go page of the Herd settings with an installed Go version](https://mintcdn.com/herd/_gdap5T-1LhRYbu1/images/docs/settings_go.png?fit=max\&auto=format\&n=_gdap5T-1LhRYbu1\&q=85\&s=b7395194b3a0b58cb129930981153f73)

Herd also offers to install Go during the onboarding and in the What's New window of Herd 2.4, so you may already have it.

Herd installs Go into `/usr/local/go`, where the official installer always installs it, and makes `go` available in your terminal. Your editor, your coding agents and Herd all use the same Go installation.

Herd installs Go with its background service, so you don't have to enter your password. If the background service isn't available, Herd opens the installer from go.dev instead, and you finish the installation in its window.

## Using an existing Go installation

If Go is already installed on your Mac, Herd uses it and doesn't install a second copy. Herd looks for `go` in the following places, in this order, like your terminal does:

* `/opt/homebrew/bin`
* `/usr/local/bin`
* `/usr/local/go/bin`

Herd can update a Go installation from the official installer. If you installed Go with another tool, for example with Homebrew, Herd uses it as it is and you update it with the tool that installed it.

## Updating Go

When you open the Go settings, Herd checks for a new stable release of Go and shows an "Update to …" button if there is one. Herd downloads the installer of the new release from go.dev and replaces the installed version with it.

## Uninstalling Go

Herd doesn't uninstall Go, because other tools on your Mac may use it as well. If you want to remove a Go installation from the official installer, delete its folder and its entry in your `PATH`:

```bash theme={null}
sudo rm -rf /usr/local/go
sudo rm /etc/paths.d/go
```
