We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以gorpc create代码生成为例,过程中涉及到了:
gorpc create
--plugins=validator+swagger
--swagger --validator
按照最初我的设计:
The text was updated successfully, but these errors were encountered:
parser/desc.go:
如下结构可以进行适当调整,携带自定义扩展的proto对应的解析信息,模板里面完成对应的逻辑,不需要侵入到代码中。如携带原始的desc.FileDescriptor信息
type FileDescriptor struct{ .... }
Sorry, something went wrong.
No branches or pull requests
以
gorpc create
代码生成为例,过程中涉及到了:命令行参数的解析;done,不需要每次PreRunE、RunE之前显示cmd.ParseFlags(...), cobra框架里面已经做了pb文件的解析;done,依然通过jhump/protoreflect工作目录的准备;todo,这个要看下--output有没有什么不安全的地方代码生成;todo,代码模板再进一步简化下protoc生成;done,这个没什么要更新的依赖的pb文件的protoc生成;todo,由于语言相关,依赖对应的插件,这里要通过插件形式来实现各个语言后置的一些特殊逻辑;各个扩展项如validate、swagger的一些代码生成逻辑`后续如何扩展?done, using--plugins=validator+swagger
instead of--swagger --validator
按照最初我的设计:
实际情况是,部分同学对pb细节、gotemplate掌握的不深入,只知道在代码里面堆砌代码来解决,代码中侵入了各个语言特有的逻辑;
这部分,对应的同学一直拖,拖到现在也没有实现,sad
The text was updated successfully, but these errors were encountered: