package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: May 19, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
printer
This directory contains code for generating files of code.
Documentation
¶
Package printer provides support for writing generated code.
Code represents a file of code to be printed.
Indent adds one level of indentation.
Outdent remvoes one level of indentation.
func (c *Code) Print(args ...interface{})
Print adds a line of code using the current indentation. Accepts printf-style format strings and arguments.
String returns the accumulated code as a string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.