Closed tormoder closed 5 years ago
The -trimprefix
is "global" and would require one invocation of stringer
for each type.
Try to fork stringer
, make it a library (to avoid being dependent on an external executable), and adjust the trim prefix logic according to our needs.
See https://godoc.org/golang.org/x/tools/cmd/stringer.