From 2e1bc9e8673cced68b89ba5210bf8e3379cd786b Mon Sep 17 00:00:00 2001 From: David Symonds Date: Mon, 12 Mar 2012 13:50:25 +1100 Subject: [PATCH] cmd/vet: little tweak to tagged literal script to get it closer to drop-in format. This is a minor change that made it easier for me; if you hate it I can drop it. R=nigeltao CC=golang-dev https://golang.org/cl/5798060 --- src/cmd/vet/taglit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/vet/taglit.go b/src/cmd/vet/taglit.go index 864e7bc609a..c3c4f3234b2 100644 --- a/src/cmd/vet/taglit.go +++ b/src/cmd/vet/taglit.go @@ -81,7 +81,8 @@ var untaggedLiteralWhitelist = map[string]bool{ find $GOROOT/src/pkg -type f | grep -v _test.go | xargs grep '^type.*\[\]' | \ grep -v ' map\[' | sed 's,/[^/]*go.type,,' | sed 's,.*src/pkg/,,' | \ - sed 's, ,.,' | sed 's, .*,,' | grep -v '\.[a-z]' | sort + sed 's, ,.,' | sed 's, .*,,' | grep -v '\.[a-z]' | \ + sort | awk '{ print "\"" $0 "\": true," }' */ "crypto/x509/pkix.RDNSequence": true, "crypto/x509/pkix.RelativeDistinguishedNameSET": true,