protoc-gen-go-http

command module
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 18 Imported by: 0

README

protoc-gen-go-http

基于protoc工具生成golang语言http代码

安装

$ go install github.com/heshaofeng1991/protoc-gen-go-http@latest 

生成代码其它依赖

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install github.com/mwitkow/go-proto-validators/protoc-gen-govalidators@latest
go install github.com/heshaofeng1991/protoc-gen-go-http@latest

使用说明

$ make proto
# or
$ protoc -I=. -I=${GOPATH}/pkg/mod \
  --go-grpc_out=. --go-grpc_opt=paths=source_relative \
  --govalidators_out=. --govalidators_opt=paths=source_relative \
  --go-http_out=. --go-http_opt=paths=source_relative \
  --gogofaster_out=plugin=gprc:. --gogofaster_opt=paths=source_relative \
  proto/example/example.proto

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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