Documentation ¶
Overview ¶
Package printer provides support for writing generated code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
Code represents a file of code to be printed.
func (*Code) Print ¶
func (c *Code) Print(args ...interface{})
Print adds a line of code using the current indentation. Accepts printf-style format strings and arguments.
Click to show internal directories.
Click to hide internal directories.