summaryrefslogtreecommitdiffhomepage
path: root/tools/go_stateify/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/go_stateify/main.go')
-rw-r--r--tools/go_stateify/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/go_stateify/main.go b/tools/go_stateify/main.go
index 5eb4fe51f..6c3583c62 100644
--- a/tools/go_stateify/main.go
+++ b/tools/go_stateify/main.go
@@ -222,9 +222,9 @@ func main() {
}
// Emit the package name.
- fmt.Fprintf(outputFile, "// automatically generated by stateify.\n\n")
+ fmt.Fprint(outputFile, "// automatically generated by stateify.\n\n")
fmt.Fprintf(outputFile, "package %s\n\n", *pkg)
- fmt.Fprintln(outputFile, "import (")
+ fmt.Fprint(outputFile, "import (\n")
if *statePkg != "" {
fmt.Fprintf(outputFile, " \"%s\"\n", *statePkg)
}
@@ -233,7 +233,7 @@ func main() {
fmt.Fprintf(outputFile, " \"%s\"\n", i)
}
}
- fmt.Fprintln(outputFile, ")\n")
+ fmt.Fprint(outputFile, ")\n\n")
files := make([]*ast.File, 0, len(flag.Args()))