duanji4449 2015-06-30 17:00
浏览 576
已采纳

“ go build”不会在golang中生成文件

This question already has an answer here:

I used go build to generate files. But I can only generate main, which mean go build main.go works while go build dao.go does not generate anything?

How can I generate dao?

</div>
  • 写回答

1条回答 默认 最新

  • douxi4414 2015-06-30 17:10
    关注

    From go help build:

    When the command line specifies a single main package,
    build writes the resulting executable to output.
    Otherwise build compiles the packages but discards the results,
    serving only as a check that the packages can be built.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 武汉岩海低应变分析软件,导数据库里不显示波形图
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。
  • ¥30 win c++ socket
  • ¥15 CanMv K210开发板实现功能
  • ¥15 C# datagridview 栏位进度
  • ¥15 vue3页面el-table页面数据过多
  • ¥100 vue3中融入gRPC-web
  • ¥15 kali环境运行volatility分析android内存文件,缺profile
  • ¥15 写uniapp时遇到的问题
  • ¥15 vs 2008 安装遇到问题