配Mac GOLANG环境

栏目: Go · 发布时间: 7年前

内容简介:cd /Users/didi/Library/Application Support/Sublime Text 3/Packages然后 git clone然后 Sublime 上Comand+. 就可以使用gosublime了。

GoSublime

package control 里面根本安装不了GoSublime .网上一堆乱文。

还是以官方github说明为准!!!

https://margo.sh/b/migrate/

cd /Users/didi/Library/Application Support/Sublime Text 3/Packages

然后 git clone https://margo.sh/GoSublime

然后 Sublime 上Comand+. 就可以使用gosublime了。

VSCODE

fn+F5 调试 出现launch.json 页面。 需要配置env。

"env": { "GOPATH":"/Users/didi/GoProject"},

配完以后。

出现:

Failded to continue:"Cannot find Delve debugger. Install from https://github.com/derekparker/delve & ensure it is in your "GOPATH/bin" or "PATH"

接着:

go get github.com/derekparker/delve/cmd/dlv

将dlv调试器放在GOPATH(工程目录)的bin目录下

快捷键如下:

F9 切换断点

F10 Step over

F11 Step in

Shift+F11 Step out

引用: https://www.cnblogs.com/klsw/p/9573998.html


以上所述就是小编给大家介绍的《配Mac GOLANG环境》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Web Security, Privacy and Commerce, 2nd Edition

Web Security, Privacy and Commerce, 2nd Edition

Simson Garfinkel / O'Reilly Media / 2002-01-15 / USD 44.95

Since the first edition of this classic reference was published, World Wide Web use has exploded and e-commerce has become a daily part of business and personal life. As Web use has grown, so have ......一起来看看 《Web Security, Privacy and Commerce, 2nd Edition》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试