package printer
Import Path
go/printer (on golang.org and go.dev)
Dependency Relation
imports 12 packages, and imported by one package
Involved Source Files
nodes.go
d-> printer.go
Exported Type Names
Exported Values
func
Fprint(output
io.
Writer, fset *
token.
FileSet, node interface{})
error
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.
const
SourcePos Mode = 8 // emit //line directives to preserve original source positions
const
TabIndent Mode = 2 // use tabs for indentation independent of UseSpaces
const
UseSpaces Mode = 4 // use spaces instead of tabs for alignment
 |
The pages are generated with Golds v0.1.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |