1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:04:40 -07:00
go/cmd/stringer
Jonathan Amsterdam b2f7fe607d cmd/stringer: type check using export data
Use go/packages to find and type check packages using export data.

In addition to type checking with export data, this should also enable
cmd/stringer to work correctly when using go modules.

jba: took over CL, tweaked package.Config use.

Change-Id: Ie253378b52fbd909f7194dfd09c039aab63dd8f0
Reviewed-on: https://go-review.googlesource.com/c/126535
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-02-04 22:01:59 +00:00
..
testdata cmd/stringer: accept simple type conversion expressions in constant ValueSpec 2018-11-01 07:19:27 +00:00
endtoend_test.go cmd/stringer: type check using export data 2019-02-04 22:01:59 +00:00
golden_test.go cmd/stringer: type check using export data 2019-02-04 22:01:59 +00:00
stringer.go cmd/stringer: type check using export data 2019-02-04 22:01:59 +00:00
util_test.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00