From: Dave Cheney Date: Mon, 7 Sep 2015 06:04:01 +0000 (+1000) Subject: cmd/dist: fix mkzversion to produce gofmt'd output X-Git-Tag: go1.6beta1~1164 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=60f0345667b8752f0a0f576f319dbfb495b36081;p=gostls13.git cmd/dist: fix mkzversion to produce gofmt'd output Fix mkzversion to produce correctly formatted runtime/zversion.go. Change-Id: Ie6bcd361a2f2e390b7f6c4980fcae2c41bb7e52f Reviewed-on: https://go-review.googlesource.com/14355 Reviewed-by: Andrew Gerrand --- diff --git a/src/cmd/dist/buildruntime.go b/src/cmd/dist/buildruntime.go index 4e9bede6e2..1e7b4a7f62 100644 --- a/src/cmd/dist/buildruntime.go +++ b/src/cmd/dist/buildruntime.go @@ -32,7 +32,7 @@ func mkzversion(dir, file string) { "const defaultGoroot = `%s`\n"+ "const theVersion = `%s`\n"+ "const goexperiment = `%s`\n"+ - "const stackGuardMultiplier = %d\n"+ + "const stackGuardMultiplier = %d\n\n"+ "var buildVersion = theVersion\n", goroot_final, findgoversion(), os.Getenv("GOEXPERIMENT"), stackGuardMultiplier()) writefile(out, file, writeSkipSame)