# 09. Installing Go

## For Windows and Mac

1. Download Go from [https://golang.org/dl](https://golang.org/dl/)
2. Download Visual Studio Code from <https://code.visualstudio.com/download>
3. Install Go extension from <https://code.visualstudio.com/docs/languages/go>

## For Ubuntu

1. Install Go using Bash shell

```bash
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go
```

2\. Install VS Code from software center

3\. Install Go extension from <https://code.visualstudio.com/docs/languages/go>

## Checking installation

Open new terminal window and type in below command to verify Go is installed successfully.

```bash
go version
```

This should output current installed go version.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.codewithgo.com/installing-go.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
