Golang开发环境配置
一、前言本文主要参考go语言中文网,里面有很多信息,非常完成。感谢作者的用心编写。 开发工具准备 git go开发工具 go中文文档 Sublime Text 2(插件GoSublime/GoGdb) 二、golang安装 下载你需要的golang版本,本人下载go1.4.2.windows-amd64.zip解压到c:盘 GOROOT=C:go (其他选填) 三、安装Sublime Text 2配置GoSublime/GoGDB这里声明一下为什么不能选ST3,因之前使用ST3安装GoGDB插件时报错“It seems you're not running gdb with the "mi" interpreter. Pleaseadd#"--interpreter=mi" to your gdb commandline” 下载ST2安装后打开它 import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' Tips:如何无法下载下来:可选择通过代理的方式来下载,地址如下: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler({'http':'127.0.0.1:1080'}))); open(os.path.join(ipp,'%20')).read()); print('Please restart Sublime Text to finish installation') (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 关于大数运算(不完整版)
- java – Spring-security – 无法访问ServletException
- 如何在Perl中捕获输出和退出代码时执行外部脚本?
- Lua Separation Steering算法将重叠的房间分组到一个角落
- If We Were a Child Again(大数除法、求余)
- Delphi中统一显示表格字段名的高效方法
- delphi – 为什么TStringList有BeginUpdate和EndUpdate?
- Binding使用的属性、DataContext上下文绑定必须使用的情况
- lua 与 c/c++ 交互(5) lua调用c/c++
- lua和c/c++互相调用实例分析