Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "rpc", Short: "生成 rpc 接口", Long: `脚手架功能: - 生成 rpc/**/*.proto 模版 - 生成 server/**/*.go 代码 - 注册接口到 http server`, Run: func(cmd *cobra.Command, args []string) { if needLogin { hooks = "loginHooks" } genRPC() genImplements() registerServer() }, }
Cmd 接口生成工具
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.