generator

package
v0.0.0-...-e03b1fb Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMacroRunner

func GenerateMacroRunner(writer io.Writer, fset *token.FileSet, file *ast.File) error

Types

type Macro

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

func NewMacro

func NewMacro(fset *token.FileSet, file *ast.File) Macro

func ParseMacro

func ParseMacro(macroPath string) (Macro, error)

func (Macro) GenerateCode

func (m Macro) GenerateCode(w io.Writer) error

func (Macro) Run

func (m Macro) Run(w, werr io.Writer, args ...string) error

type NamePair

type NamePair struct {
	Name     string
	FuncName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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