1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:14:44 -07:00
go/cmd/stringer
Rob Pike 18f0b668f1 cmd/stringer: add a -tags flag that supports build tags
This is reapplying CL121995 after rolling back the change to the importing
methods. There is still a need for a flag to control tags.
The original CL decription:

The feature has been requested but, like build tags in general,
only works in a directory, not when files are specified explicitly.
Unlike the build tools, report when the feature is misused like this
to avoid confusion.

Fixes golang/go#9449

Change-Id: I732627d5f2e6323367e3bdd5de746923868890a9
Reviewed-on: https://go-review.googlesource.com/122537
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-07-10 05:22:40 +00:00
..
testdata cmd/stringer: add a -tags flag that supports build tags 2018-07-10 05:22:40 +00:00
endtoend_test.go cmd/stringer: add a -tags flag that supports build tags 2018-07-10 05:22:40 +00:00
golden_test.go cmd/stringer: add flag to use line comment as str 2017-12-19 23:05:15 +00:00
importer18.go cmd/stringer: revert back to source importer 2018-07-07 07:48:14 +00:00
importer19.go cmd/stringer: revert back to source importer 2018-07-07 07:48:14 +00:00
stringer.go cmd/stringer: add a -tags flag that supports build tags 2018-07-10 05:22:40 +00:00
util_test.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00