目录
一、Goland的安装与破解
二、Go的环境变量配置
一、Goland的安装与破解
首先进入网址https://www.jetbrains.com/go/,下载Mac版的GoLand,下载完成后拖至应用程序中。
1.在应用程序中点击GoLand图标选择“显示包内容”,在/Contents/bin目录下打开goland.vmoptions文件,在该文件中的结尾添加一句内容,然后保存退出。
-javaagent:JetbrainsCrack-2.9-release-enc.jar
2.下载破解GoLand的jar包,下载路径为链接:https://pan.baidu.com/s/1sl2U9VpxIT8GEobYXweY8w 密码:45ue,将下载的jar包放在/Contents/bin目录下。
如果百度云盘失效,可以在CSDN上下载,https://download.csdn.net/download/studyhard232/10564611。
3.打开GoLand应用程序,在激活码中复制以下内容,其中可以将licenseeName可以写自己的英文名,然后就OK了。
{"licenseId":"1337",
"licenseeName":"你的名字",
"assigneeName":"",
"assigneeEmail":"",
"licenseRestriction":"Unlimited license till end of the century.",
"checkConcurrentUse":false,
"products":[
{"code":"II","paidUpTo":"2099-12-31"},
{"code":"DM","paidUpTo":"2099-12-31"},
{"code":"AC","paidUpTo":"2099-12-31"},
{"code":"RS0","paidUpTo":"2099-12-31"},
{"code":"WS","paidUpTo":"2099-12-31"},
{"code":"DPN","paidUpTo":"2099-12-31"},
{"code":"RC","paidUpTo":"2099-12-31"},
{"code":"PS","paidUpTo":"2099-12-31"},
{"code":"DC","paidUpTo":"2099-12-31"},
{"code":"RM","paidUpTo":"2099-12-31"},
{"code":"CL","paidUpTo":"2099-12-31"},
{"code":"PC","paidUpTo":"2099-12-31"},
{"code":"DB","paidUpTo":"2099-12-31"},
{"code":"GO","paidUpTo":"2099-12-31"},
{"code":"RD","paidUpTo":"2099-12-31"}
],
"hash":"2911276/0",
"gracePeriodDays":7,
"autoProlongated":false}
二、Go的环境变量配置
进入网址https://golang.org/中,下载Mac版的Go。将下载好的Go解压后放入自己指定路径中。在Mac终端输入,更改配置文件。
vim .zshrc
在打开的配置文件中添加以下内容,然后保存退出。
export GOROOT="你存放Go的路径"
export PATH=$PATH:$GOROOT/bin
export GOPATH=存放自己Go的代码文件的目录,不需要引号