美文网首页
配Mac GOLANG环境

配Mac GOLANG环境

作者: RedHatMe | 来源:发表于2018-12-06 14:08 被阅读0次

    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环境

          本文链接:https://www.haomeiwen.com/subject/yuoncqtx.html