Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
go: GOPATH 条目是相对的;必须是绝对路径:“%Jittu%\go”。更多细节见:'go help gopath
Go 不会在GOPATH. 您需要提供绝对路径,例如 setx GOPATH "C:\Users\Jittu\go".
GOPATH
setx GOPATH "C:\Users\Jittu\go"
如果要使用其他变量进行设置GOPATH,则必须在设置时对其进行扩展,GOPATH以便GOPATHGo 始终将其视为绝对路径。