(f *ast.File)
| 112 | const parserMode = parser.ParseComments |
| 113 | |
| 114 | func gofmtFile(f *ast.File) ([]byte, error) { |
| 115 | var buf bytes.Buffer |
| 116 | if err := format.Node(&buf, fset, f); err != nil { |
| 117 | return nil, err |
| 118 | } |
| 119 | return buf.Bytes(), nil |
| 120 | } |
| 121 | |
| 122 | func processFile(filename string, useStdin bool) error { |
| 123 | var f *os.File |
no outgoing calls