gen

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator added in v1.1.0

type Generator struct {
	Options
	W *protogen.GeneratedFile // The file to write to
	F *protogen.File          // The proto file descr
}

func (*Generator) ApplyTemplate added in v1.1.0

func (g *Generator) ApplyTemplate() error

This function is called with a param which contains the entire definition of a method.

type Options

type Options struct {
	MarshalOptions   protojson.MarshalOptions
	UnmarshalOptions protojson.UnmarshalOptions
}

Options are the options to set for rendering the template.

Jump to

Keyboard shortcuts

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