generator

package
v0.2.134 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoCodeGenerator

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

referenced github.com/golang/tools/blob/master/cmd/stringer

func NewGoCodeGenerator

func NewGoCodeGenerator(generator string, pkg string) *GoCodeGenerator

func (GoCodeGenerator) FormattedCode

func (g GoCodeGenerator) FormattedCode() ([]byte, error)

func (*GoCodeGenerator) Printf

func (g *GoCodeGenerator) Printf(format string, a ...interface{}) (int, error)

func (GoCodeGenerator) WriteAsTemplateFileName

func (g GoCodeGenerator) WriteAsTemplateFileName() error

func (GoCodeGenerator) WriteFile

func (g GoCodeGenerator) WriteFile(filename string) error

Jump to

Keyboard shortcuts

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