]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: re-quote struct tags when printing errors
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 8 Jul 2016 14:52:02 +0000 (07:52 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 21 Aug 2016 22:47:03 +0000 (22:47 +0000)
commit65c5d62420a539f2f0d06b3ea2ba837f0fbdd6cf
tree3a2ecb782701ccf82229a5ccafea22a5a7b9309e
parent6ad76718cfdd59977b0008c1e774150a7e39fbd8
cmd/vet: re-quote struct tags when printing errors

cmd/link/link_test.go contains several multi-line
struct tags. Going through an unquote/quote cycle
converts `a
b
c` to "a\nb\nc\n".

This keeps all vet error messages for the standard
library on a single line.

Updates #11041

Change-Id: Ifba1e87297a5174294d1fbf73463fd3db357464f
Reviewed-on: https://go-review.googlesource.com/27129
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/structtag.go