1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:21:22 -06:00
go/src
Rob Pike d1feddb7ae cmd/vet: improve documentation for flags, slightly
The way that -all works was unclear from the documentation and made
worse by recent changes to the flag package. Improve matters by making
the help message say "default true" for the tests that do default to true,
and tweak some of the wording.

Before:

Usage of vet:
	vet [flags] directory...
	vet [flags] files... # Must be a single package
For more information run
	go doc cmd/vet

Flags:
  -all
    	enable all non-experimental checks (default unset)
  -asmdecl
    	check assembly against Go declarations (default unset)
...

After:

Usage of vet:
	vet [flags] directory...
	vet [flags] files... # Must be a single package
By default, -all is set and all non-experimental checks are run.
For more information run
	go doc cmd/vet

Flags:
  -all
    	enable all non-experimental checks (default true)
  -asmdecl
    	check assembly against Go declarations (default true)
...

Change-Id: Ie94b27381a9ad2382a10a7542a93bce1d59fa8f5
Reviewed-on: https://go-review.googlesource.com/21495
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-04-11 22:35:22 +00:00
..
archive all: delete dead test code 2016-03-21 07:10:08 +00:00
bufio all: replace magic 0x80 with named constant utf8.RuneSelf 2016-04-10 15:15:57 +00:00
builtin
bytes bytes: add ContainsRune 2016-04-08 20:24:57 +00:00
cmd cmd/vet: improve documentation for flags, slightly 2016-04-11 22:35:22 +00:00
compress compress/flate: improve short writer error test 2016-04-10 15:59:00 +00:00
container
context context: document that WithValue's key must be comparable 2016-04-11 01:52:10 +00:00
crypto crypto/rsa, crypto/ecdsa: fail earlier on zero parameters 2016-04-05 21:03:20 +00:00
database/sql all: delete dead non-test code 2016-03-25 06:28:13 +00:00
debug debug/gosym: do not forget to close test binay file handle in TestPCLine 2016-04-05 04:43:44 +00:00
encoding all: replace magic 0x80 with named constant utf8.RuneSelf 2016-04-10 15:15:57 +00:00
errors
expvar expvar: Ensure strings are written as valid JSON. 2016-04-06 03:52:39 +00:00
flag
fmt fmt: hold on to all free buffers, regardless of size 2016-04-03 06:20:37 +00:00
go context: document that WithValue's key must be comparable 2016-04-11 01:52:10 +00:00
hash hash/crc64: Add tests for ECMA polynomial 2016-03-31 20:42:02 +00:00
html all: use bytes.Equal, bytes.Contains and strings.Contains, again 2016-04-11 15:16:54 +00:00
image image/color: add YCbCrToRGB benchmark 2016-04-11 19:15:58 +00:00
index/suffixarray
internal internal/trace: support parsing of 1.5 traces 2016-04-11 17:56:44 +00:00
io io: change the name of ReadAtSizer to SizedReaderAt 2016-04-08 14:46:19 +00:00
log
math math/big: re-use memory in Int.GCD 2016-04-07 17:19:37 +00:00
mime mime: fix maximum length of encoded-words 2016-03-29 11:19:31 +00:00
net net/http: add ServerContextKey to let a handler access its Server 2016-04-11 18:34:49 +00:00
os os/user: wrap getgrnam_r to fix type issues 2016-04-06 15:49:15 +00:00
path all: use bytes.Equal, bytes.Contains and strings.Contains, again 2016-04-11 15:16:54 +00:00
reflect reflect: add s390x support 2016-04-06 04:23:06 +00:00
regexp all: delete dead non-test code 2016-03-25 06:28:13 +00:00
runtime internal/trace: support parsing of 1.5 traces 2016-04-11 17:56:44 +00:00
sort all: delete dead non-test code 2016-03-25 06:28:13 +00:00
strconv
strings bytes, string: add Reset method to Reader 2016-04-07 18:58:01 +00:00
sync sync/atomic: add s390x implementations of atomic functions 2016-04-07 15:30:14 +00:00
syscall syscall: add assembly for Linux on s390x 2016-04-08 18:40:11 +00:00
testing testing: fix flakey test on plan9 2016-04-06 18:35:33 +00:00
text text/template: emit field error over nil pointer error where appropriate 2016-04-10 23:29:29 +00:00
time all: delete dead non-test code 2016-03-25 06:28:13 +00:00
unicode
unsafe
vendor/golang.org/x/net/http2/hpack all: fix spelling mistakes 2016-04-03 17:03:15 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash cmd/dist: redo flag-passing for bootstrap 2016-03-18 19:00:03 +00:00
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc