fenghuang
V2EX  ›  问与答

问个 GoLand 的使用问题

  •  
  •   fenghuang · Oct 21, 2019 · 4318 views
    This topic created in 2429 days ago, the information mentioned may be changed or developed.

    文件编译过程

    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 replies    2019-10-26 17:50:08 +08:00
    hyperbin
        1
    hyperbin  
       Oct 21, 2019 via Android
    goland 是什么?
    fenghuang
        2
    fenghuang  
    OP
       Oct 21, 2019
    @hyperbin #1 一个 GoLang IDE
    GoLand
        3
    GoLand  
       Oct 21, 2019
    可以自己设置 build 参数
    shawn42025
        4
    shawn42025  
       Oct 26, 2019
    @fenghuang 设置 Output directory 可以放到 bin 中
    @GoLand 想折叠#gosetup 这些信息 请问你知道怎么设置吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5671 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 06:10 · PVG 14:10 · LAX 23:10 · JFK 02:10
    ♥ Do have faith in what you're doing.