go/src
Thomas Wanielista adeb7e640b go/doc: classify function returning slice or array of T as constructor
Previously, go/doc would only consider functions and slices that
return types of T or any number of pointers to T: *T, **T, etc. This
change expands the definition of a constructor to include functions
that return arrays of a type (or pointer to that type) in its first
return.

With this change, the following return types also classify a function
as a constructor of type T:

[1]T
[1]*T
[1]**T
(and so on)

Fixes #22856.

Change-Id: I37957c5f2d6a7b2ceeb3fbaef359057f2039393d
Reviewed-on: https://go-review.googlesource.com/85355
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2018-06-12 16:37:37 +00:00
..
archive all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
bufio
builtin
bytes bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
cmd cmd/vet: use vet-specific export data to record detected printf wrappers 2018-06-12 01:51:04 +00:00
compress all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
container
context context: add benchmarks for context cancellation 2018-05-29 21:57:30 +00:00
crypto crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
database/sql database/sql: update doc related to per-connection state 2018-06-06 18:18:20 +00:00
debug debug/pe: add IMAGE_FILE_MACHINE_ARM64 2018-06-07 16:17:04 +00:00
encoding encoding/asn1: gofmt 2018-06-07 15:01:06 +00:00
errors
expvar
flag flag: removed the colon after "Usage" in the documentation 2018-06-07 07:00:46 +00:00
fmt
go go/doc: classify function returning slice or array of T as constructor 2018-06-12 16:37:37 +00:00
hash all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
html all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
image all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
index/suffixarray index/suffixarray: fix a typo mistake in comments 2018-05-29 12:16:51 +00:00
internal crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
io io: calculate buffer size only when needed 2018-05-06 15:52:31 +00:00
log log/syslog: skip tests that depend on daemon on builders 2018-05-22 18:26:03 +00:00
math all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
mime all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
net net/http, net/http/httptrace: make Transport support 1xx responses properly 2018-06-12 13:42:28 +00:00
os os: check setStickyBit error in mkdir 2018-06-05 14:53:18 +00:00
path os: add js/wasm architecture 2018-06-01 05:18:38 +00:00
plugin plugin: make stub lookup signature match dlopen version 2018-05-08 17:09:05 +00:00
reflect reflect: add StructOf test case that gccgo used to fail 2018-06-06 14:08:42 +00:00
regexp all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
runtime runtime: convert a darwin/arm64 syscall to libc 2018-06-12 15:29:51 +00:00
sort all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
strconv strconv: add missing period to godoc comment 2018-06-09 01:26:25 +00:00
strings all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
sync sync: deflake TestWaitGroupMisuse2 2018-05-14 04:42:45 +00:00
syscall syscall: update TOKEN_ALL_ACCESS according to WinNT.h 2018-06-11 00:45:20 +00:00
testing Revert "testing: only compute b.N once when passed -count > 1" 2018-05-31 14:22:44 +00:00
text text/tabwriter: fix BenchmarkPyramid and BenchmarkRagged again 2018-06-04 17:32:17 +00:00
time runtime: don't crash holding locks on racy timer access 2018-06-04 18:33:41 +00:00
unicode all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
unsafe
vendor/golang_org/x net/http: vendor x/net/http/httpproxy, use it in net/http 2018-05-29 21:54:57 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash src/*.bash: remove some trailing whitespace 2018-05-04 14:47:49 +00:00
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash runtime/race: implement race detector for ppc64le 2018-06-11 17:45:36 +00:00
race.bat
run.bash
run.bat
run.rc