go/src
jimmyfrasche 20b14b71df go/build: correct value of .Doc field
Build could use the package comment from test files to populate the .Doc
field on *Package.

As go list uses this data and several packages in the standard library
have tests with package comments, this lead to:

$ go list -f '{{.Doc}}' flag container/heap image
These examples demonstrate more intricate uses of the flag package.
This example demonstrates an integer heap built using the heap interface.
This example demonstrates decoding a JPEG image and examining its pixels.

This change now only examines non-test files when attempting to populate
.Doc, resulting in the expected behavior:

$ gotip list -f '{{.Doc}}' flag container/heap image
Package flag implements command-line flag parsing.
Package heap provides heap operations for any type that implements heap.Interface.
Package image implements a basic 2-D image library.

Fixes #23594

Change-Id: I37171c26ec5cc573efd273556a05223c6f675968
Reviewed-on: https://go-review.googlesource.com/96976
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-07 14:35:52 +00:00
..
archive archive/zip: improve Writer.Create documentation on how to add directories 2018-02-26 19:58:48 +00:00
bufio
builtin
bytes internal/bytealg: move short string Index implementations into bytealg 2018-03-04 19:49:44 +00:00
cmd cmd/trace: generate jsontrace data in a streaming fashion 2018-03-07 14:33:54 +00:00
compress
container
context
crypto crypto/aes: optimize arm64 AES implementation 2018-03-06 00:44:29 +00:00
database/sql database/sql: add String method to IsolationLevel 2018-02-22 15:17:52 +00:00
debug debug/macho: use bytes.IndexByte instead of a loop 2018-03-06 18:58:50 +00:00
encoding encoding/binary: use an offset instead of slicing 2018-03-06 18:59:03 +00:00
errors
expvar
flag
fmt fmt: change some unexported method names to camel case 2018-02-27 20:12:04 +00:00
go go/build: correct value of .Doc field 2018-03-07 14:35:52 +00:00
hash crypto: remove hand encoded amd64 instructions 2018-03-01 19:20:53 +00:00
html all: fix misspellings 2018-02-20 21:02:58 +00:00
image all: fix misspellings 2018-02-20 21:02:58 +00:00
index/suffixarray
internal internal/poll: if poller init fails, assume blocking mode 2018-03-06 23:21:25 +00:00
io
log
math math/big: don't use R18 in ARM64 assembly 2018-03-06 15:34:00 +00:00
mime
net net/http: correct subtle transposition of offset and whence in test 2018-03-06 06:13:17 +00:00
os os: use WIN32_FIND_DATA.Reserved0 to identify symlinks 2018-03-07 08:51:04 +00:00
path path/filepath: use a temp dir in path_test.go 2018-03-05 23:38:39 +00:00
plugin
reflect reflect: avoid calling common if type is known to be *rtype 2018-02-22 07:18:15 +00:00
regexp regexp: Regexp shouldn't keep references to inputs 2018-02-23 16:58:48 +00:00
runtime runtime: add missing build constraints to os_linux_{be64,noauxv,novdso,ppc64x}.go files 2018-03-07 14:26:19 +00:00
sort
strconv
strings internal/bytealg: move short string Index implementations into bytealg 2018-03-04 19:49:44 +00:00
sync
syscall runtime: rename vdso symbols to use camel case 2018-03-05 19:12:32 +00:00
testing testing: gracefully handle subtest failing parent’s T 2018-03-01 10:17:22 +00:00
text text/template: fix the documentation of the block action 2018-02-21 20:57:47 +00:00
time time: avoid unnecessary type conversions 2018-02-26 16:14:51 +00:00
unicode
unsafe unsafe: fix reference to string header 2018-02-26 18:35:46 +00:00
vendor/golang_org/x
Make.dist
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: don't require GOARCH set 2018-03-07 14:01:43 +00:00
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash iostest.bash: don't build std library twice 2018-03-06 16:08:20 +00:00
make.bash
make.bat build: small cleanup in error message in make.bat 2018-02-26 10:27:14 +00:00
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc