protoc-gen-markdown/README.md

16 lines
283 B
Markdown
Raw Normal View History

2025-09-07 17:26:39 +08:00
# protoc-gen-markdown
## install
```bash
go install git.apinb.com/bsm-tools/protoc-gen-markdown
```
## generate markdown
```bash
protoc --markdown_out=Mhello.proto=./:. ./hello.proto
# set path prefix to /api
protoc --markdown_out=Mhello.proto=./,prefix=/api:. ./hello.proto
```