Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Golang: Getting started - "go" is not recognized as an internal or external command"

Tags:

windows

go

Trying to get started with Go but I cant manage to set up the work environnement properly.

like image 214
Apswak Avatar asked Apr 10 '16 09:04

Apswak


2 Answers

Aside from @Xeph's answer, just make sure if you recently installed Go that you use a fresh terminal/cmd window.

like image 125
Nth.gol Avatar answered Oct 14 '22 07:10

Nth.gol


EDITED for future reference.

  1. You set your 'GOROOT' wrong. Set it to C:\Go\

  2. Include C:\Go\bin to your 'Path'

like image 36
Xeph Avatar answered Oct 14 '22 07:10

Xeph