protoc-gen-genki

command module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

README

protoc-gen-genki

Generate code to reduce gRPC layer boilerplate

Install

To install, just clone the repo, cd into it and do a go install which will install protoc-gen-genki.

LICENSE

protoc-gen-genki is a reuse of protoc-gen-go and maintains it's license

Documentation

Overview

protoc-gen-genki is a plugin for the Google protocol buffer compiler to generate Go code. Run it by building this program and putting it in your path with the name

protoc-gen-genki

That word 'genki' at the end becomes part of the option string set for the protocol compiler, so once the protocol compiler (protoc) is installed you can run

protoc --genki_out=output_directory --go_out=output_directory input_directory/file.proto

to generate go-genki code for the protocol defined by file.proto. With that input, the output will be written to

output_directory/file.genki.go

The generated code is documented in the package comment for the library.

See the README and documentation for protocol buffers to learn more:

https://developers.google.com/protocol-buffers/

Directories

Path Synopsis
example
The code generator for the plugin for the Google protocol buffer compiler.
The code generator for the plugin for the Google protocol buffer compiler.

Jump to

Keyboard shortcuts

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