generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader interface {
	ReadFile(filename string) ([]byte, error)
}

FileReader is an interface for a Generator to read files

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator reads in a CodeGeneratorRequest and writes out a CodeGeneratorResponse

func NewGenerator

func NewGenerator(in io.Reader, out io.Writer, fileReader FileReader) *Generator

NewGenerator creates a new Generator

func (*Generator) Run

func (g *Generator) Run() error

Run the Generator to read the input and generate the output

Jump to

Keyboard shortcuts

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