Do you need a separate $GOPATH between Windows and WSL?

王林
Release: 2024-02-06 10:09:03
forward
1153 people have browsed it

您需要在 Windows 和 WSL 之间使用单独的 $GOPATH 吗?

Question content

I use Windows and WSL to develop Go code, however, I don't know if I need to use separate for Windows and WSL $GOPATH, or can I use the same $GOPATH for both.

Can I use the same $GOPATH between Windows and WSL?

sorry.


Correct Answer


Yes, you even should use the same: unset the GOPATH on both.

(Forget that GOPATH exists and stop reading stuff that still talks about GOPATH.)

The above is the detailed content of Do you need a separate $GOPATH between Windows and WSL?. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!