Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>proto-to-golangNew to Visual Studio Code? Get it now.
proto-to-golang

proto-to-golang

hogan

|
502 installs
| (1) | Free
VSCode插件ProtoToGo
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

proto-to-golang

前置要求: gopath中需要先安装protoc相关工具 Alt text

当前激活的proto文件生成go代码 img1

目录结构: 目前支持将gen/xxx/下的proto文件生成到protosService中 目前支持将ext/下的proto文件生成到protosService中 Alt text

生成后的文件需要手动去除 _ "/api"的导入 Alt text

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft