一、go安装
1、建议去go语言中文网下载,网址:https://studygolang.com/dl ,下图是下载页面及包介绍
2、Windows版安装
3、在cmd命令行窗口输入“go version”可以查看当前Go版本,用以检测是否安装成功
4、在任意盘里新建文件夹GoWorks,里面再新建三个文件夹: bin、src、pkg
5、把GoWorks添加到环境变量中去
二、安装goland
下载安装一路下一步
设置gopath
三、破解goland
1、下载新版破解补丁
https://pan.baidu.com/s/1PqgV1JNTwYKUJnH6mszQgg
提取码:2kj8
下载补丁文件 jetbrains-agent.jar
并将它放置到 Goland安装目录的in目录下(位置可随意,放这里是怕误操作删除了破解文件)。
2、进入项目界面
如果你之前已经使用有效期激活过可跳过此步骤,如果你是刚下载的GoLand,则需要点击激活窗口的“Evaluate for free”免费试用,然后再创建一个空项目,这样就可以进入到GoLand的工作页面
3、修改配置文件
进入到项目界面后,点击GoLand最上面的菜单栏中的 “Help” -> “Edit Custom VM Options …”,如果提示是否要创建文件,请点”Yes”。
在打开的vmoptions编辑窗口末行添加:-javaagent:你goland的安装目录jetbrains-agent.jar
请仔细检查补丁路径是否正确,如果错误则会出现GoLand打不开的情况,这时候可以删除用户配置目录下的goland文件夹:
windwos:C:Users用户名
macos:~/Library/Preferences/
ubuntu:~/.
修改完配置文件之后重启GoLand
4、输入激活码
重启GoLand之后,点击菜单栏中的 “Help” -> “Register …”,选择Activation code方式激活,复制下面激活码即可
JQE11SV0BR-eyJsaWNlbnNlSWQiOiJKUUUxMVNWMEJSIiwibGljZW5zZWVOYW1lIjoicGlnNiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIj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