1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:34:44 -07:00
go/cmd/stringer/testdata
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
..
cgo.go tools/cmd/stringer: fake import C. 2014-11-27 15:36:14 +11:00
day.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00
gap.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00
num.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00
number.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00
prime.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00
tag_main.go cmd/stringer: add a -tags flag that supports build tags 2018-07-10 05:22:40 +00:00
tag_tag.go cmd/stringer: add a -tags flag that supports build tags 2018-07-10 05:22:40 +00:00
unum2.go cmd/stringer: fix panic caused by integer overflow 2015-06-02 19:44:20 +00:00
unum.go go.tools/cmd/stringer: add end-to-end test that compiles, runs, and verifies the generated method 2014-09-05 15:42:23 -07:00