tmpl

package
v0.0.0-...-a422202 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(request *plugin.CodeGeneratorRequest, config Config) (*plugin.CodeGeneratorResponse, error)

New returns a new generator for the given template.

Types

type Config

type Config struct {
	TemplateRoot string
	URLRoot      string
	Operations   []OperationConfig
}

Config for the plugin

type OperationConfig

type OperationConfig struct {
	// Template is the path of the template file to use for generating the
	// target.
	Template string

	// Target is the target proto file for generation. It must match one of the
	// input proto files, or else the template will not be executed.
	Target string

	// Output is the output file to write the executed template contents to.
	Output string
}

OperationConfig for rendering an html template from proto source

Jump to

Keyboard shortcuts

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