Documentation ¶
Index ¶
Constants ¶
View Source
const FileNameSuffix = "_json.gen.go"
FileNameSuffix is the suffix added to files generated by jsonshim
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { *generator.Generator generator.PluginImports // contains filtered or unexported fields }
Plugin is a protoc-gen-gogo plugin that creates MarshalJSON() and UnmarshalJSON() functions for protobuf types.
func (*Plugin) FilesWritten ¶
FilesWritten returns a list of the names of files for which output was generated
func (*Plugin) Generate ¶
func (p *Plugin) Generate(file *generator.FileDescriptor)
Generate our content
Click to show internal directories.
Click to hide internal directories.