> For the complete documentation index, see [llms.txt](https://docs.prestd.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prestd.com/get-prest/start-with-golang.md).

# Start with Golang

### Prerequisites

* Go (1.26+)

***

### Quick Start

The `go install` command builds and installs the packages named by the paths on the command line. Executables (main packages) are installed to the directory named by the GOBIN environment variable, which defaults to `$GOPATH/bin` or `$HOME/go/bin` if the **GOPATH** environment variable is not set. Executables in `$GOROOT` are installed in `$GOROOT/bin` or `$GOTOOLDIR` instead of `$GOBIN`. Non-executable packages are built and cached but not installed.

Since **Go 1.16**, if the arguments have version suffixes (like `@latest` or `@v2.2.0`), go install builds packages in module-aware mode, ignoring the go.mod file in the current directory or any parent directory if there is one. This is useful for installing executables without affecting the dependencies of the main module.

Latest stable v2 (recommended):

```sh
go install github.com/prest/prest/v2/cmd/prestd@v2.4.0
```

Or tip of the module:

```sh
go install github.com/prest/prest/cmd/prestd@latest
```

Set `PREST_VERSION=2` when running v2. See [Upgrading to v2](/get-started/upgrading-to-v2.md).
