V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fenghuang
V2EX  ›  问与答

问个 GoLand 的使用问题

  •  
  •   fenghuang · 2019-10-21 21:31:18 +08:00 · 3299 次点击
    这是一个创建于 1647 天前的主题,其中的信息可能已经有所发展或是发生改变。

    文件编译过程

    GOROOT=D:\Go #gosetup
    GOPATH=H:\code\go #gosetup
    D:\Go\bin\go.exe build -o C:\Users\admin\AppData\Local\Temp\___go_build_github_com_iqinqin_mathapp.exe github.com/iqinqin/mathapp #gosetup
    C:\Users\admin\AppData\Local\Temp\___go_build_github_com_iqinqin_mathapp.exe #gosetup
    

    问题:我的GOPATH标准路径 bin/pkg/src 都建好了,run 为什么不放到 bin,而是加了一个-o输出到缓存路径去了

    4 条回复    2019-10-26 17:50:08 +08:00
    hyperbin
        1
    hyperbin  
       2019-10-21 22:07:23 +08:00 via Android
    goland 是什么?
    fenghuang
        2
    fenghuang  
    OP
       2019-10-21 22:46:05 +08:00
    @hyperbin #1 一个 GoLang IDE
    GoLand
        3
    GoLand  
       2019-10-21 22:47:13 +08:00
    可以自己设置 build 参数
    shawn42025
        4
    shawn42025  
       2019-10-26 17:50:08 +08:00
    @fenghuang 设置 Output directory 可以放到 bin 中
    @GoLand 想折叠#gosetup 这些信息 请问你知道怎么设置吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1362 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.