command
module
Version:
v0.0.0-...-4f7c85c
Opens a new window with list of versions in this module.
Published: Jul 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
protodoc
Generate a markdown document for a Protobuf file.
Usage:
go get -u github.com/aclisp/protodoc
protodoc demo.proto > demo.md
Example
See demo.md
Design
The Protobuf file generally has four sections:
- Service definitions, containing RPC methods
- Enumerations
- User defined types, called object
- RPC Request and Response objects
When generating a markdown document,
- <1> and <4> are combined together
- <2> and <3> are referenced by <4>
Inspired by protobuf 为经络,gRPC为骨架.
Limitation
Only a subset of proto3 is supported as for best practice.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.