Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure GOPATH?

Tags:

go

goland

I installed Goland as a Go IDE and it wants me to configure GOPATH. I'm new in this language so I don't know what to do. Here is the error message:

GOPATH was detected We've detected some libraries from your GOPATH. You may want to add extra libraries in GOPATH configuration.

Edit: Not a duplicate question, export GOROOT=""solved my problem. Thanks anyway.

like image 1000
Ege Kuzubasioglu Avatar asked Sep 15 '25 06:09

Ege Kuzubasioglu


1 Answers

You actually do not need to set the GOPATH environment variable; in Go 1.8 it's ~/go by default.

I suggest that you just update to latest stable Go (1.8) and use that convention; otherwise you'll need to set the GOPATH variable in your environment.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!