Giter VIP home page Giter VIP logo

Comments (7)

flazx avatar flazx commented on July 30, 2024

falsework去除就可以了,不要引入这个~~

from sniper.

 avatar commented on July 30, 2024

falsework去除就可以了,不要引入这个~~

好的,main.go去除了falsework,请问还需要去除其他地方的吗?对Go不是很熟悉......

from sniper.

taoso avatar taoso commented on July 30, 2024

之前 falsework 是项目代码的一部分。如果生成的代码有问题会导致编译失败,进而 falsework 子命令也无法使用。现在移除了 falsework 子命令,引入了独立的 sniper 命令来解决这个问题。

from sniper.

eifrigmn avatar eifrigmn commented on July 30, 2024

@flyqieqq 提到的另一个问题貌似还会复现,执行如下命令:

go run cmd/sniper/main.go rpc --service=foo
go run main.go server --port=8080

提示:
image
是不是要把cmd/server/main.go中的

initMux(mux, isInternal)

改为:

initMux(mux)

from sniper.

taoso avatar taoso commented on July 30, 2024

需要把initMux(mux)改为initMux(mux, isInternal),可能你的main.go是之前生成的。

from sniper.

eifrigmn avatar eifrigmn commented on July 30, 2024

好的,感谢,那我再试一下

from sniper.

yigger avatar yigger commented on July 30, 2024

需要把initMux(mux)改为initMux(mux, isInternal),可能你的main.go是之前生成的。

应该是 initMux(mux, isInternal) 改为 initMux(mux) 吧? 我看 master 调用处传了两个参数,实际上 cmd/server/http.go 的 initMux 方法只接收一个参数

from sniper.

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.