go install github.com/fynntang/protobuf-gen-go/protoc-gen-go-http@latest
protoc --proto_path=./ \
--go_out=paths=source_relative:./ \
--go-http_out=paths=source_relative:./
go install github.com/fynntang/protobuf-gen-go/protoc-go-inject-tags@latest
protoc-go-inject-tags --tags=form,uri --folder=./
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 |