如何将GOPATH链接到LiteIDE? [英] How to link GOPATH to LiteIDE?

查看:113
本文介绍了如何将GOPATH链接到LiteIDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 .bashrc中安装了LiteIde并导出了 GOROOT GOPATH / code>。当我使用LiteIDE时,自动完成工作得很好,但它无法构建/运行我的代码。当我查看'管理GOPATH'时,系统GOPATH框是空的,我也无法输入。



在线查看解决方案似乎是 - '链接' GOPATH 和LiteIDE。

解决方案

从下拉菜单中为系统选择正确的环境:





例如,如果您在Mac上并使用软件包安装程序,则它将在64位Mac上为darwin64-local。



然后点击下拉菜单左侧的Go文件夹图标。




点击Add Directory ...并添加一个文件夹路径,其中包含 src pkg bin 文件夹。基本上你设置 GOPATH 为。



确保你设置GOROOT为 .bashrc 你不需要设置GOROOT,真的


I've installed LiteIde and exported GOROOT and GOPATH in my .bashrc. When I use LiteIDE, the auto-completion works just fine, but it can't build/run my code. When I look at 'Manage GOPATH', the System GOPATH box is empty, and I can't type into it either.

Looking up online, the solution seems to be - 'link' the GOPATH and LiteIDE. How do I 'link' the two?

解决方案

Select the correct environment for you system from the drop-down:

For example, if you're on a Mac and used the package installer it would be "darwin64-local" on a 64 bit Mac.

Then click on the "Go" folder icon on the left of the drop-down.

Click "Add Directory..." and add a folder path that contains src, pkg, and bin folders. Essentially what you set GOPATH to.

Make sure you do not set GOROOT in .bashrc at all. You don't need to set GOROOT, really.

这篇关于如何将GOPATH链接到LiteIDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆