//
pkg.gl
Category
github.com/cockroachdb/gostdlib
go
printer
package
1.19.0
Repository:
https://github.com/cockroachdb/gostdlib.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
15
Dependents
3
Files
3.2k SLOC
#
Functions
Fprint
Fprint "pretty-prints" an AST node to output.
#
Constants
RawFormat
do not use a tabwriter; if set, UseSpaces is ignored.
SourcePos
emit //line directives to preserve original source positions.
TabIndent
use tabs for indentation independent of UseSpaces.
UseSpaces
use spaces instead of tabs for alignment.
#
Structs
CommentedNode
A CommentedNode bundles an AST node and corresponding comments.
Config
A Config node controls the output of Fprint.
#
Type aliases
Mode
A Mode value is a set of flags (or 0).