1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00
go/cmd/stringer
Rob Pike 75d2ffb453 stringer: add a -tags flag that supports build tags
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: I079d363c5eeb5bc647fd2f0f3d88d28d630644d8
Reviewed-on: https://go-review.googlesource.com/121995
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-07-04 00:06:24 +00:00
..
testdata stringer: add a -tags flag that supports build tags 2018-07-04 00:06:24 +00:00
endtoend_test.go stringer: add a -tags flag that supports build tags 2018-07-04 00:06:24 +00:00
golden_test.go cmd/stringer: add flag to use line comment as str 2017-12-19 23:05:15 +00:00
stringer.go stringer: add a -tags flag that supports build tags 2018-07-04 00:06:24 +00:00
util_test.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00