generator

package
v0.0.0-...-d37cb27 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	*bytes.Buffer
	Request  *compiler.CodeGeneratorRequest  // The input
	Response *compiler.CodeGeneratorResponse // The output

	Param map[string]string // Command-line parameters
	// contains filtered or unexported fields
}

func New

func New() *Generator

func (*Generator) CommandLineArguments

func (g *Generator) CommandLineArguments(parameter string)

func (*Generator) Error

func (g *Generator) Error(err error, msgs ...string)

Error reports a problem, including an error, and exits the program.

func (*Generator) Fail

func (g *Generator) Fail(msgs ...string)

Fail reports a problem and exits the program.

func (*Generator) GenerateAllFiles

func (g *Generator) GenerateAllFiles()

Jump to

Keyboard shortcuts

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