plugin

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRequest

func ReadRequest() (*pluginpb.CodeGeneratorRequest, error)

ReadRequest Unmarshal CodeGeneratorRequest.

func RunPlugin

RunPlugin runs a protoc plugin named "protoc-gen-$plugin" and returns the generated CodeGeneratorResponse or an error. Supply a non-nil stderr to override stderr on the called plugin.

func StripParam

func StripParam(req *pluginpb.CodeGeneratorRequest, p string)

StripParam strips a named param from req.

func WriteResponse

func WriteResponse(w io.Writer, res *pluginpb.CodeGeneratorResponse) error

WriteResponse marshals and writes CodeGeneratorResponse res to w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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