1
0
mirror of https://github.com/golang/go synced 2024-10-01 12:38:31 -06:00
go/cmd/vet
Nigel Tao 9622599500 cmd/vet: allow spaces in struct tag values.
The validateStructTag code now closely mimics the StructTag.Get code in
package reflect.

This addresses the comment raised on issue #9500:
https://github.com/golang/go/issues/9500#issuecomment-70218780

See also https://go-review.googlesource.com/3953

Change-Id: I583f7447dbc5a2d7ecbb393d9bb6b1515cb10b18
Reviewed-on: https://go-review.googlesource.com/3952
Reviewed-by: Rob Pike <r@golang.org>
2015-02-06 02:26:15 +00:00
..
testdata cmd/vet: allow spaces in struct tag values. 2015-02-06 02:26:15 +00:00
whitelist tools: add import comments. 2014-12-09 22:42:16 +00:00
asmdecl.go cmd/vet: keep processing files after warning 2015-01-13 19:51:41 +00:00
assign.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
atomic.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
bool.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
copylock.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
deadcode.go go.tools/cmd/vet: prevent panic on goto without label 2014-06-20 11:08:45 -07:00
doc.go tools: add import comments. 2014-12-09 22:42:16 +00:00
main.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
print.go cmd/vet: warn about zero arg index in print format 2015-02-04 18:31:58 +00:00
rangeloop.go go.tools/cmd/vet: change message for range check 2014-08-24 17:26:18 -07:00
shadow.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
shift.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
structtag.go cmd/vet: allow spaces in struct tag values. 2015-02-06 02:26:15 +00:00
types.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
unsafeptr.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00