go语言下载及安装「建议收藏」

2022-09-16 16:54:25 浏览数 (1)

go语言下载地址:https://studygolang.com/dl

在cmd输入go

如果显示这样,说明安装成功

go env -w GOPROXY=https://goproxy.cn,direct 修改国内镜像

go env -w GO111MODULE=on

然后在cmd输入go env

查看修改是否成功

go get -v golang.org/x/tools/cmd/goimports

2.我们用goland工具做go开发

https://www.jetbrains.com/go/

3怎么去激活成功教程goland

javaagent下载:链接:https://pan.baidu.com/s/1K6NWcxXNN4TvAXsZ0cebzQ       提取码:gn0i

示例:

mac: -javaagent:/Users/neo/jetbrains-agent.jar

linux: -javaagent:/home/neo/jetbrains-agent.jar

windows: -javaagent:C:Usersneojetbrains-agent.jar

2.复制下面的东西到goland的激活成功教程页面

3AGXEJXFK9-eyJsaWNlbnNlSWQiOiIzQUdYRUpYRks5IiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly96aGlsZS5pbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJQUyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJHTyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJETSIsImZ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hnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQBonMu8oa3vmNAa4RQP8gPGlX3SQaA3WCRUAj6Zrlk8AesKV1YSkh5D2l yUk6njysgzfr1bIR5xF8eup5xXc4/G7NtVYRSMvrd6rfQcHOyK5UFJLm 8utmyMIDrZOzLQuTsT8NxFpbCVCfV5wNRu4rChrCuArYVGaKbmp9ymkw1PU6 HoO5i2wU3ikTmRv8IRjrlSStyNzXpnPTwt7bja19ousk56r40SmlmC04GdDHErr0ei2UbjUua5kw71Qn9g02tL9fERI2sSRjQrvPbn9INwRWl5 k05mlKekbtbu2ev2woJFZK4WEXAd/GaAdeZZdumv8T2idDFL7cAirJwcrbfpawPeXr52oKTPnXfi0l5 g9Gnt/wfiXCrPElX6ycTR6iL3GC2VR4jTz6YatT4Ntz59/THOT7NJQhr6AyLkhhJCdkzE2cob/KouVp4ivV7Q3Fc6HX7eepHAAF/DpxwgOrg9smX6coXLgfp0b1RU2u/tUNID04rpNxTMueTtrT8WSskqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxDTRvv krbwMr26SB/40BjpMUrDRCeKuiBahC0DCoU/4 ze1l94wVUhdkCfL0GpJrMSCDEK XEurU18Hb7WT ThXbkdl6VpFdHsRvqAnhR2g4b Qzgidmuky5NUZVfEaZqV/g==

3.根据自已的github生成license

https://zhile.io/custom/license

E5ADS4P929-mFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUkMiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUkQiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iO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ei2UbjUua5kw71Qn9g02tL9fERI2sSRjQrvPbn9INwRWl5 k05mlKekbtbu2ev2woJFZK4WEXAd / GaAdeZZdumv8T2idDFL7cAirJwcrbfpawPeXr52oKTPnXfi0l5 g9Gnt / wfiXCrPElX6ycTR6iL3GC2VR4jTz6YatT4Ntz59 / THOT7NJQhr6AyLkhhJCdkzE2cob / KouVp4ivV7Q3Fc6HX7eepHAAF / DpxwgOrg9smX6coXLgfp0b1RU2u / tUNID04rpNxTMueTtrT8WSskqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxDTRvv krbwMr26SB / 40BjpMUrDRCeKuiBahC0DCoU / 4 ze1l94wVUhdkCfL0GpJrMSCDEK XEurU18Hb7WT ThXbkdl6VpFdHsRvqAnhR2g4b Qzgidmuky5NUZVfEaZqV /克==

Goland 汉化

汉化在这里的意思是中文化,因为 Goland 的菜单都是英文的,这对于刚刚接触它的新手来说会造成一定的困扰,那要怎么实现中文呢?这里需要用到一些特殊的方法。

首先关闭 Goland ,然后在我们下载的激活成功教程补丁中找到“resources_cn.jar”,并将它复制到 Goland 安装目录下的 lib 目录中,如下图所示:

复制汉化补丁

然后,同样在 lib 目录中找到“resources_en.jar”文件,它是 Goland 内置的一个英文补丁,这里需要将它删除或者重命名,建议大家选择重命名的方式,因为想要恢复英文的话还需要用到它。

重命名 resources_en.jar

运行 Goland ,你会发现 Goland 中的菜单已经变成我们熟悉的中文了。

汉化后的效果

提示:汉化补丁并没有实现百分之百的汉化,仍然存在部分英文。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/166794.html原文链接:https://javaforall.cn

0 人点赞