mirror of
https://github.com/golang/go
synced 2024-11-21 16:34:42 -07:00
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
This commit is contained in:
parent
0c74d867c5
commit
2e1bc9e867
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user