protoc-gen-go-gin

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

protoc-gen-go-gin

根据proto生成gin controller


go install github.com/hongshengjie/protoc-gen-go-gin@latest

protoc -I. -I/usr/local/include --go-gin_out=. --go_out=. --go-grpc_out=. proto/user.api.proto
protoc-go-inject-tag -input api/user.api.pb.go

TODO

  • [ ](自定义http method,GET)
  • [ ](除了json 可以支持form等类型的参数)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL