Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.5 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.5 KB

protobuf-gen-go

Static Badge Static Badge Static Badge Static Badge Static Badge GitHub tag (with filter)

Usage

Install protoc-gen-go-http

go install github.com/fynntang/protobuf-gen-go/protoc-gen-go-http@latest

protoc command

protoc --proto_path=./ \
  --go_out=paths=source_relative:./ \
  --go-http_out=paths=source_relative:./

Install protoc-go-inject-tags

go install github.com/fynntang/protobuf-gen-go/protoc-go-inject-tags@latest

command

protoc-go-inject-tags --tags=form,uri --folder=./

protoc-go-inject-tags parameter description

Parameter Description Default
--tags Used to specify the label that needs to be injected
--folder Used to specify the directory where the file is located