<div class="htmledit_views" id="content_views"> <p>最近在学习go语言,一个是因为区块链的技术热潮,另一个是接手的项目有用到go写多线程高并发,因此决定自学go。</p><p>第一个遇到的问题就是<strong><span style="color:#ff0000;">环境</span></strong>!</p><p>通过一个晚上的摸索,大概步骤如下:</p><p></p><ol><li>在IDEA中先打开settings——>Http Proxy,设置代理,否则你是无法下载go插件的!<img src="https://img-blog.csdn.net/20180604211031279?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3d4eDE1MTU1Ng==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70" alt=""></li><li>进入settings——>plugins——>Browse repositories从浏览器中下载插件:<img src="https://img-blog.csdn.net/20180604211252519?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3d4eDE1MTU1Ng==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70" alt=""></li><li>上图中一定要选择指定的URL:<p style="font-family:'-apple-system', 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, SimHei, SimSun;background-color:rgb(255,255,255);"><a href="https://plugins.jetbrains.com/plugins/alpha/5047" rel="nofollow" data-token="850a126ff31170878c88c6110ec24b44">https://plugins.jetbrains.com/plugins/alpha/5047</a></p><p style="font-family:'-apple-system', 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, SimHei, SimSun;background-color:rgb(255,255,255);"><a href="https://plugins.jetbrains.com/plugins/nightly/5047" rel="nofollow" data-token="175cd411573f8e7bb58cf78659cb540a">https://plugins.jetbrains.com/plugins/nightly/5047</a></p></li><li><p style="font-family:'-apple-system', 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, SimHei, SimSun;background-color:rgb(255,255,255);">以上这两个URL都可以下到合适的go plugin,能够出现go SDK的选项。但是其他版本的go plugin我试了不下5个都不行!!!另外,我的IDEA是<strong><span style="color:#ff0000;">2017.1.4</span></strong>版本的,这是插件的一个bug,目前还没有特别好的办法,只能认为安装合适的版本才行!<img src="https://img-blog.csdn.net/20180604211813275?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3d4eDE1MTU1Ng==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70" alt="">你需要上面这两个链接中的任何一个,然后安装,之后重启IDEA就好了!</p></li><li><p style="font-family:'-apple-system', 'SF UI Text', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif, SimHei, SimSun;background-color:rgb(255,255,255);">最后,进入Project structure——> SDKs 选择go SDK即可,这个C盘下的go是我在官网上下载的SDK:<img src="https://img-blog.csdn.net/20180604212200452?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3d4eDE1MTU1Ng==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70" alt=""></p></li></ol> 原文地址:https://blog.csdn.net/wxx151556/article/details/80573094 </div>
暂无评论...