protoc-gen-json2bin

command module
v0.0.0-...-61fe8db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 14 Imported by: 0

README

protoc-gen-json2bin

license

protoc-gen-json2binjson から protobufバイナリ を生成する protocプラグイン です。
protocプラグイン は本来、任意の言語に向けてのクラス等を生成するのに用いられますが、 protoc-gen-json2bin では定義ファイルである .proto の他に json も入力として与え、ソースコードではなく protobuf のバイナリデータファイルを出力します。


インストール

go get github.com/peto-tn/protoc-gen-json2bin

使い方

protoc --plugin=$GOPATH/bin/protoc-gen-json2bin --json2bin_out=json=<JSON_FILE_PATH>,message_type=<MESSAGE_TYPE>,output=<OUTPUT_FILE_NAME>:<OUTPUT_DIR> <PROTO_FILE>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL