Skip to content

joesonw/oneproto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

go install github.com/joesonw/oneproto
oneproto -I ./proto -O output.proto -T template.proto -P example.com ./proto 

for more details, please check example

Extend another message

One proto now support extend another message (merge) by specifying extend in the message options.

Please see [user.proto](./example/proto/user.proto) for example

```proto
// import oneproto.proto. This will not effect the tool nor output, this is to make the IDE happy.
// You might want to include "go list --json github.com/joesonw/oneproto | jq -r '.Dir'" 

import "oneproto.proto";

About

a handy tool to merge all your protobuf files into one (to allow circular imports while still keep files separate for better maintainability)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors