commit | bce7a99f8ae89e194045114404fcc6287b1f8722 | [log] [tgz] |
---|---|---|
author | Daniel Martí <mvdan@mvdan.cc> | Wed Nov 08 22:03:33 2017 +0000 |
committer | Daniel Martí <mvdan@mvdan.cc> | Thu Nov 09 22:55:28 2017 +0000 |
tree | 7a595eb7d5562a24b340b1bc2c893606dea1c40b | |
parent | 05e91d06384e3a4eb0aba75560d254b8d5a7b431 [diff] |
cmd/stringer: add -trimprefix option 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>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.