Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer represents a Go source code generator for translating command-line commands into Go library calls.
func NewPrinter ¶
NewPrinter creates a new Printer for emitting Go source code from parsed package functions.
func (*Printer) PrintBody ¶
func (p *Printer) PrintBody()
PrintBody prints Go source code containing all functions defined in the main package.
func (*Printer) PrintHeader ¶
PrintHeader prints Go source code containing the main package's imports, type definitions, and variable declarations.
func (*Printer) PrintPackage ¶
PrintPackage prints Go source code containing all functions defined in the main package.
Click to show internal directories.
Click to hide internal directories.