tormoder / fit

A Go package for decoding and encoding Garmin FIT files
MIT License
243 stars 42 forks source link

cmd/stringer: fork upstream tool and convert to library #30

Closed tormoder closed 5 years ago

tormoder commented 6 years ago

See https://godoc.org/golang.org/x/tools/cmd/stringer.

tormoder commented 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.