From 7a94893dc32f250be4cb02e1798cf64d25306886 Mon Sep 17 00:00:00 2001 From: Leo Rudberg Date: Wed, 12 Jul 2017 19:47:01 -0400 Subject: [PATCH] cmd/eg: Gofmt eg's dry-run output. The content of the dry-run and the actual (file-editing) run should now be the same. Change-Id: If89f85838f7f53f14ffa4e2b6a425507835dda62 Reviewed-on: https://go-review.googlesource.com/48210 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- cmd/eg/eg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/eg/eg.go b/cmd/eg/eg.go index c3cee7df31..18b0f09b10 100644 --- a/cmd/eg/eg.go +++ b/cmd/eg/eg.go @@ -7,8 +7,8 @@ import ( "flag" "fmt" "go/build" + "go/format" "go/parser" - "go/printer" "go/token" "os" "os/exec" @@ -139,7 +139,7 @@ func doMain() error { hadErrors = true } } else { - printer.Fprint(os.Stdout, iprog.Fset, file) + format.Node(os.Stdout, iprog.Fset, file) } } }