To trim a string prefix from the names when generating their final strings. Add a simple test too. There is no automatic detection of prefixes for now. That can be added later, building on top of this first simple implementation. Fixes #16539. Change-Id: Ica37273ac74bb0a6cbd43e61823786963d86a492 Reviewed-on: https://go-review.googlesource.com/76650 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org> |
||
|---|---|---|
| .. | ||
| testdata | ||
| endtoend_test.go | ||
| golden_test.go | ||
| importer18.go | ||
| importer19.go | ||
| stringer.go | ||
| util_test.go | ||