Next, create the directory structure for your Go workspace:

mkdir go/bin, go/src
You will receive output similar to this:

Output    Directory: C:\Users\sammy\go\src\github.com\digitalocean\godo


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        4/10/2019   2:59 PM                util
-a----        4/10/2019   2:59 PM              9 .gitignore
-a----        4/10/2019   2:59 PM             69 .travis.yml
-a----        4/10/2019   2:59 PM           1592 account.go
-a----        4/10/2019   2:59 PM           1679 account_test.go
-rw-r--r--  1 sammy  staff   2892 Apr  5 15:56 CHANGELOG.md
-rw-r--r--  1 sammy  staff   1851 Apr  5 15:56 CONTRIBUTING.md
.
.
.
-a----        4/10/2019   2:59 PM           5076 vpcs.go
-a----        4/10/2019   2:59 PM           4309 vpcs_test.go
Here is what a typical workspace may look like:

.
├── bin
│   ├── buffalo                                      # command executable
│   ├── dlv                                          # command executable
│   └── packr                                        # command executable
└── src
    └── github.com
        └── digitalocean
            └── godo
                ├── .git                            # Git repository metadata
                ├── account.go                      # package source
                ├── account_test.go                 # test source
                ├── ...
                ├── timestamp.go
                ├── timestamp_test.go
                └── util
                    ├── droplet.go
                    └── droplet_test.go
Since you used Chocolatey for the installation, this environment variable should already be set. You can verify this with the following command:

$env:GOPATH

# Output:
# OutputC:\Users\sammy\go
You can verify this by using the go get command to fetch the godo library:

go get github.com/digitalocean/godo
Now that you have the root of the workspace created and your $GOPATH environment variable set, you will create your future projects with the following directory structure. This example assumes you are using github.com as your repository:

$GOPATH/src/github.com/username/project
When Go compiles and installs tools, it will put them in the $GOPATH/bin directory. For convenience, it’s common to add the workspace’s bin subdirectory to your $PATH. You can do this using the setx command in PowerShell:

setx PATH "$($env:path);$GOPATH\bin"
Issue the following command to navigate to the $HOME directory:

cd $HOME
If you were working on the https://github.com/digitalocean/godo project, you would put it in the following directory:

$GOPATH/src/github.com/digitalocean/godo
This will ensure the following directory structure is now in place:

└── $HOME
    └── go
        ├── bin
        └── src

Recommend

How To Install Go and Set Up a Local Programming Environment on Windows 10 Step 5 — Creating Your Go Workspace

How To Install Go and Set Up a Local Programming Environment on Windows 10 Step 4 — Installing Go

How To Install Go and Set Up a Local Programming Environment on Windows 10 Step 3 — Installing the Text Editor Nano (Optional)

How To Install Go and Set Up a Local Programming Environment on Windows 10 Step 2 — Installing the Package Manager Chocolatey

How To Install Go and Set Up a Local Programming Environment on Windows 10 Step 1 — Opening and Configuring PowerShell

Como Instalar o Nginx no Ubuntu 16.04 Passo 4: Gerenciar os Processos do Nginx

Como Instalar o Nginx no Ubuntu 16.04 Passo 3: Checar o seu Servidor Web

Como Instalar o Nginx no Ubuntu 16.04 Passo 2: Ajustar o Firewall

Como Instalar o Nginx no Ubuntu 16.04 Passo 1: Instalar o Nginx

Como criar um novo usuário habilitado para sudo no CentOS 8: [guia de início rápido] Passo 4 — Testando o acesso sudo

Como criar um novo usuário habilitado para sudo no CentOS 8: [guia de início rápido] Passo 3 — Adicionando o usuário ao grupo wheel

Como criar um novo usuário habilitado para sudo no CentOS 8: [guia de início rápido] Passo 2 — Adicionando um novo usuário ao sistema

Como criar um novo usuário habilitado para sudo no CentOS 8: [guia de início rápido] Passo 1 — Fazendo login em seu servidor

Cómo instalar la pila Linux, Apache, MariaDB y PHP (LAMP) en CentOS 8 Paso 5: Probar la conexión con la base de datos desde PHP (opcional)

Cómo instalar la pila Linux, Apache, MariaDB y PHP (LAMP) en CentOS 8 Paso 4: Probar PHP con Apache

Cómo instalar la pila Linux, Apache, MariaDB y PHP (LAMP) en CentOS 8 Paso 3: Instalar PHP

Cómo instalar la pila Linux, Apache, MariaDB y PHP (LAMP) en CentOS 8 Paso 2 - Instalar MariaDB

Cómo instalar la pila Linux, Apache, MariaDB y PHP (LAMP) en CentOS 8 Paso 1: Instalar el servidor web Apache

Настройка ключей SSH в CentOS 8 Шаг 4 — Отключение аутентификации с помощью пароля на сервере

Настройка ключей SSH в CentOS 8 Шаг 3 — Вход на ваш сервер CentOS с помощью ключей SSH

Настройка ключей SSH в CentOS 8 Шаг 2 — Копирование открытого ключа на сервер CentOS Копирование открытого ключа вручную

Настройка ключей SSH в CentOS 8 Шаг 2 — Копирование открытого ключа на сервер CentOS Копирование открытого ключа с помощью SSH

Настройка ключей SSH в CentOS 8 Шаг 2 — Копирование открытого ключа на сервер CentOS Копирование открытого ключа с помощью утилиты ssh-copy-id

Настройка ключей SSH в CentOS 8 Шаг 1 — Создание пары ключей RSA