protoc-gen-go-jsonshim

command module
v0.0.0-...-5e29c41 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

protoc-gen-go-jsonshim is a plugin for the Google protocol buffer compiler to generate Go code which generates MarshalJSON() and UnmarshalJSON() functions from the Protocol Buffers definition types.

Install it by building this program and making it accessible within your PATH with the name:

protoc-gen-go-jsonshim

The 'go-jsonshim' suffix becomes part of the argument for the protocol compiler, such that it can be invoked as:

protoc --go-jsonshim_out=. path/to/file.proto

This generates Go service definitions for the protocol buffer defined by file.proto.

With that input, the output will be written to:

path/to/file_jsonshim.pb.go

Directories

Path Synopsis
Package jsonshim generates MarshalJSON() and UnmarshalJSON() functions from the Protocol Buffers definition types.
Package jsonshim generates MarshalJSON() and UnmarshalJSON() functions from the Protocol Buffers definition types.

Jump to

Keyboard shortcuts

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