mirror of
https://github.com/golang/go
synced 2024-11-05 15:56:12 -07:00
go.tools/cmd/stringer: fix docs: stringer is not a "go tool"
Documentation change only. The binary will not be installed using the "go tool" mechanism. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/133710046
This commit is contained in:
parent
84c740c8b6
commit
e548cb3dfe
@ -29,7 +29,7 @@
|
|||||||
//
|
//
|
||||||
// running this command
|
// running this command
|
||||||
//
|
//
|
||||||
// go tool stringer -type=Pill
|
// stringer -type=Pill
|
||||||
//
|
//
|
||||||
// in the same directory will create the file pill_string.go, in package painkiller,
|
// in the same directory will create the file pill_string.go, in package painkiller,
|
||||||
// containing a definition of
|
// containing a definition of
|
||||||
@ -42,8 +42,7 @@
|
|||||||
//
|
//
|
||||||
// Typically this process would be run using go generate, like this:
|
// Typically this process would be run using go generate, like this:
|
||||||
//
|
//
|
||||||
// //go:generate go tool stringer -type=Pill
|
// //go:generate stringer -type=Pill
|
||||||
// TODO: do we install this as a tool or as a binary?
|
|
||||||
//
|
//
|
||||||
// If multiple constants have the same value, the lexically first matching name will
|
// If multiple constants have the same value, the lexically first matching name will
|
||||||
// be used (in the example, Acetaminophen will print as "Paracetamol").
|
// be used (in the example, Acetaminophen will print as "Paracetamol").
|
||||||
|
Loading…
Reference in New Issue
Block a user