1
1
123qwe123qwe2021-10-25 12:33:13
go
123qwe123qwe, 2021-10-25 12:33:13

How to fix "cannot find GOROOT directory" error?

go: cannot find GOROOT directory: C:\go. there was no GOROOT in the environment variable, and I, not understanding why it was needed, added it to the C:\users\work\go\src\GOROOT folder if the memory does not fail, it seemed so.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2021-10-25
@pav5000

Set GOROOT to the full path to the installed files of the GO itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question