Examples using... bytes.Buffer.String()

Recent
Command returns the Cmd struct to execute the named program with the given arguments.
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.
Node formats node in canonical gofmt style and writes the result to dst.