generator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagMark            = template.TagMark
	MicrogenGeneralTag = "microgen"
	ProtobufTag        = "protobuf"
	GRPCRegAddr        = "grpc-addr"
)

Variables

This section is empty.

Functions

func ListTemplatesForGen added in v0.3.0

func ListTemplatesForGen(iface *types.Interface, force bool, importPackageName, absOutPath, sourcePath string) (units []*generationUnit, err error)

func NewGenUnit added in v0.3.0

func NewGenUnit(tmpl template.Template, outPath string) (*generationUnit, error)

func ValidateInterface added in v0.3.0

func ValidateInterface(iface *types.Interface) error

Types

type Generator

type Generator interface {
	Generate() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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