Documentation ¶ Index ¶ func Fprint(t testing.TB, output io.Writer, fset *token.FileSet, node any) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Fprint ¶ func Fprint(t testing.TB, output io.Writer, fset *token.FileSet, node any) Fprint "pretty-prints" an AST node to output. It calls [Config.Fprint] with default settings. Note that gofmt uses tabs for indentation but spaces for alignment; use format.Node (package go/format) for output that matches gofmt. Types ¶ This section is empty. Source Files ¶ View all Source files printer.go Click to show internal directories. Click to hide internal directories.