Giter VIP home page Giter VIP logo

Comments (5)

CarlJi avatar CarlJi commented on September 8, 2024

这种放置代码的方式,是有啥背景吗? 感觉挺奇怪的

from goc.

HeartIsBeat avatar HeartIsBeat commented on September 8, 2024

回复楼上,我们公司就有这种的在cmd/目录下多个main函数,然后是一个仓库,可以分多个服务运行。不同服务,跑不同的main函数。所以楼主这个应该也涉及这种,服务部署都没问题,就是需要哪个main,就把那个main移出来,然后goc build 就ok了

from goc.

Jerry1127 avatar Jerry1127 commented on September 8, 2024

@CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错

from goc.

lizaiganshenmo avatar lizaiganshenmo commented on September 8, 2024

hi,这种问题,你们是如何解决适配的?

from goc.

lizaiganshenmo avatar lizaiganshenmo commented on September 8, 2024

@CarlJi 我们也是一样的问题,goc build -o不允许指定具体的main包进行编译吗,只能cd到main包所在的目录下,然后goc自己去搜索main包,然后编译吗,如果这个目录下有多个main包,就会出现楼主上面的那个报错

请问你们是如何解决的呢最后

from goc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.