Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release branch.go1.13 #1

Open
wants to merge 1,681 commits into
base: release-branch.go1.12
from
Open
Changes from all commits
Commits
Show all changes
1681 commits
Select commit Hold shift + click to select a range
db042d2
html/template: handle nil Error values in context.String
stjj89 Jun 11, 2019
2f387ac
doc: update 1.13 release notes
randall77 Jun 10, 2019
263db9b
html/template, text/template: document glob semantics
adg May 31, 2019
53f628e
cmd/go/internal/modload: query correct "latest" version through proxy
jayconrod Jun 17, 2019
bc27b64
doc: remove a Google+ link since it doesn't exist anymore
stmuk Jun 17, 2019
52572af
reflect,doc: use "the" instead of "a" in IsZero docs
josharian Jun 17, 2019
bd7d1bb
doc/go1.13: runtime release notes, some compiler release notes
aclements Jun 14, 2019
cb0f0d6
doc/go1.13: add release notes for the net package
andybons Jun 17, 2019
2ba9f7c
cmd/go: fix sumdb test failure with misbehaving DNS server
jayconrod Jun 18, 2019
c82e7e7
doc/go1.13: add crypto-related release notes
FiloSottile Jun 17, 2019
1962dc8
net/http: fix Server.IdleTimeout and Server.ReadHeaderTimeout docs
jamdagni86 Jun 18, 2019
18107ed
math: add examples for Log, Log2, Mod, and Abs
MCBrandenburg Jun 19, 2019
e9188d1
cmd/go/internal/modfetch: re-resolve commit hashes in readDiskStat
bcmills Jun 12, 2019
9f68d2f
cmd/link: fix stale link to MachO file format reference in comment
thanm Jun 19, 2019
7119f4b
doc/go1.13: add release notes for language changes
griesemer Jun 19, 2019
b373d31
cmd/compile: correct comments of gc.Val fields
cuonglm Jun 17, 2019
26954bd
cmd/link: macos: set initial protection of 0 for __DWARF segment
thanm Jun 19, 2019
0ab1cc3
doc/go1.13: expand ports, add skeleton language changes section
aclements Jun 18, 2019
0b3a57b
crypto/tls: disable RSA-PSS in TLS 1.2 again
FiloSottile Jun 13, 2019
832959f
doc/go1.13: add release notes for the testing package
andybons Jun 18, 2019
71a6a44
cmd/go: install binaries in cmd/ in $GOROOT/bin instead of $GOBIN
jayconrod Jun 19, 2019
769fda2
cmd/compile: add necessary operand to mergePoint in rewrite rules
dr2chase Jun 19, 2019
8456b07
cmd/go/internal/imports: match solaris files for illumos
tklauser Jun 1, 2019
bc81f52
text/scanner: rename AllowNumberbars to AllowDigitSeparators
griesemer Jun 19, 2019
0884bca
crypto/tls: move shared code and resources to handshake_test.go
FiloSottile Jun 19, 2019
ee63782
crypto/tls: reject low-order Curve25519 points
FiloSottile Jun 19, 2019
94aa155
crypto/x509: normalize and expand docs of Parse and Marshal functions
FiloSottile Jun 20, 2019
3ed5a53
bufio: Reader.Read may return io.EOF even when it has data buffered
dcormier Jun 19, 2019
b5a8dcb
doc/go1.13: document changes to gofmt, go/* libs, and fix entry for t…
griesemer Jun 20, 2019
1130cc7
Revert "runtime: use dispatch semaphores on Darwin"
ianlancetaylor Jun 19, 2019
44c9354
bufio: add example for Scanner.Bytes
Guitarbum722 Jul 27, 2017
b3399ac
cmd/go: add more docs for go directive in go.mod file
ianlancetaylor Jun 12, 2019
3f1422c
cmd/link: revise previous __DWARF segment protection fix
thanm Jun 20, 2019
41b9e99
cmd/gofmt: fix normalization of imaginary number literals
griesemer Jun 21, 2019
851616d
cmd/go/testdata: update addmod.go to work with the mainline go command
bcmills Jun 21, 2019
1803ab1
cmd/go: validate pseudo-versions against module paths and revision me…
bcmills Jun 11, 2019
c11f6c4
doc: add release notes for godoc and go doc
dmitshur Jun 17, 2019
295419d
runtime/cgo: on Solaris link against -lxnet
ianlancetaylor Jun 21, 2019
c290cb6
test: update blank1.go for changed gofrontend error messages
ianlancetaylor Jun 22, 2019
fafc92d
doc/go1.13: remove bytes TODO since it does not require a release note
andybons Jun 24, 2019
43e53be
cmd/go/internal/modfetch: treat a missing go.mod file as a “not exist…
bcmills Jun 24, 2019
122a4fb
doc/go1.13: mention {NetBSD,OpenBSD}/arm64 ports
ianlancetaylor Jun 24, 2019
4ae3835
cmd/go: silence ar with D flag failures
Helflym Jun 13, 2019
38fc0af
cmd/cgo: fix inappropriate array copy
kawakami-o3 Jun 22, 2019
26c60ce
cmd/go: fix a typo in module-private help text
bcmills Jun 24, 2019
5f7e9ce
doc/go1.13: cmd/go, math/big, and a leftover crypto/x509 release note
FiloSottile Jun 24, 2019
d1d9ad5
bufio: fix ExampleScanner_Bytes comment, add error check
ianlancetaylor Jun 24, 2019
df901bc
runtime: fix a register save/restore bug in sigtramp of arm-darwin
benshi001 Jun 24, 2019
e28f0d9
cmd/go/internal/modfetch: return structured errors from proxy operations
bcmills Jun 24, 2019
1969005
cmd/go/internal/modfetch: filter pseudo-versions from proxy /list end…
bcmills Jun 21, 2019
98e1bd2
doc/go1.13: add release notes for the errors package
andybons Jun 24, 2019
3f83c83
cmd/go: ensure that runtime/cgo is not stale in TestExecBuildX
bcmills Jun 25, 2019
599aa6d
cmd/go: validate path in mod init path
cuonglm Jun 17, 2019
fd62982
cmd/internal/obj/ppc64: add doc.go
laboger Jun 24, 2019
a6ad626
doc/go1.13: describe changes to 'go get'
bcmills Jun 24, 2019
816ce1a
doc/go1.13: describe 'go env -w'
bcmills Jun 24, 2019
53a42d3
doc/go1.13: describe new cmd/go environment variables
bcmills Jun 24, 2019
fa0537b
doc/go1.13: close <em> and <code> tags
dmitshur Jun 25, 2019
8382ccb
doc/go1.13: binary-only package are no longer supported
jayconrod Jun 24, 2019
343b7fa
cmd/compile: don't mark argument array as noalg
randall77 Jun 14, 2019
6d1aaf1
misc/cgo/test: use char, not int, so test works on big-endian systems
ianlancetaylor Jun 25, 2019
adf8883
go/types: avoid race condition with dot-imported objects
griesemer Jun 25, 2019
9bf6278
syscall: fix nil pointer dereference in Getdirentries on 32-bit freeb…
tklauser Jun 25, 2019
24f7d89
cmd/go: 'go get' should not delete binaries when run from $GOBIN
jayconrod Jun 25, 2019
4ea7aa7
cmd/compile, runtime: use R20, R21 in ARM64's Duff's devices
cherrymui Jun 25, 2019
60f14fd
api: promote next to go1.13
andybons Jun 26, 2019
b21c837
doc/go1.13: describe the change in behavior of GO111MODULE=auto
bcmills Jun 26, 2019
06f709a
doc/go1.13: move 'go get -t' paragraph to be adjacent to 'go get -u' …
bcmills Jun 26, 2019
4047f01
cmd/go: move mod_get_svn test to vcs-test.golang.org
bcmills Jun 25, 2019
070e2dd
cmd/go/internal/modfetch/codehost: don't try to execute a nonexistent…
bcmills Jun 26, 2019
4b41f7f
cmd/go/internal/modfetch: halt proxy fallback if the proxy returns a …
bcmills Jun 25, 2019
93c0562
sync: fix pool wrap-around test
aclements Jun 26, 2019
c19b3a6
sync: make TestPoolDequeue termination condition more robust
aclements Jun 26, 2019
9caaac2
sync: only check for successful PopHeads in long mode
aclements Jun 26, 2019
fc26cba
doc/go1.13: describe new 'go version' behavior
jayconrod Jun 26, 2019
ab94ebb
doc/go1.13: make cmd/go paragraphs more concise
bcmills Jun 26, 2019
9acd2d6
misc/cgo/errors: fix TestPointerChecks when GO111MODULE=on
bcmills Jun 26, 2019
f938b9b
cmd/go: fix typo in sumdb cache path
heschik Jun 21, 2019
998a989
fmt: fix typo in errors.go
oiooj Jun 27, 2019
e301e16
Revert "syscall: use Ctty before fd shuffle"
neild Jun 26, 2019
0d4de70
misc/cgo/errors: align code snippets in ptr_test.go
bcmills Jun 26, 2019
f1a8ca3
go/build: don't check if srcDir in GOPATH when deciding to use modules
jayconrod Jun 27, 2019
f205ae3
go/importer: update documentation on ForCompiler lookup parameter
griesemer Jun 27, 2019
b97ec8e
text/scanner: remove AllowDigitSeparator flag again
griesemer Jun 27, 2019
67f181b
doc: fix spec links in Go 1.13 release notes
dpinela Jun 27, 2019
3b040b7
cmd/doc: provide working directory to build.Import calls
dmitshur Jun 27, 2019
91c385b
runtime: fix pprof cpu profile corruption on arm/mips/mipsle
rsc Jun 28, 2019
2e0cd2a
net: deflake TestVariousDeadlines
rsc Jun 28, 2019
623d653
crypto/tls: deflake localPipe in tests
rsc Jun 28, 2019
c485e8b
runtime: use a pipe to wake up signal_recv on Darwin
ianlancetaylor Jun 28, 2019
bc593ea
sync: document implementation of Once.Do
rsc Jun 29, 2019
d410642
runtime: use correct register in darwin/386 pipe_trampoline
ianlancetaylor Jun 30, 2019
fbde753
cmd/compile: make duplicate anonymous interface output deterministic
randall77 Jun 26, 2019
e62c3d3
test: add testcase for gccgo compile failure
thanm Jun 26, 2019
54c6b81
cmd/go: fix TestScript/mod_sumdb_golang to avoid assumptions about @v…
bcmills Jul 2, 2019
e2fdce9
doc/go1.13: fix typo
tklauser Jul 2, 2019
1c1e517
test: add a test for gccgo bug #32901
cherrymui Jul 2, 2019
b412fde
go/build: document characters allowed in build tags
jayconrod Jul 3, 2019
a3a0cc2
cmd/go: restore @latest behavior and support @upgrade in 'go get'
jayconrod Jul 1, 2019
beeb8fe
cmd/go: update tests for new @upgrade query
jayconrod Jul 3, 2019
adcb2b1
lib/time: update tz data to 2019b
ksshannon Jul 2, 2019
04e2e81
net/http: stop ExampleServer_Shutdown from hanging on error
eest Jul 4, 2019
e94472a
doc/go1.13: fix links and a closing tag
0xmohit Jul 4, 2019
9a00e64
test: add another test for issue 32680
randall77 Jul 4, 2019
7aac343
debug/elf: add version information to all dynamic symbols
aclements Jun 27, 2019
a2fb5cd
cmd/cgo: accept weak dynamic imports
aclements Jun 27, 2019
13327f2
encoding/json: obey SetEscapeHTML in all MarshalJSON cases
mvdan Jul 2, 2019
ddc8439
test: add new test case for gccgo compiler bug
thanm Jul 3, 2019
fbaf881
net/http: fix Transport.MaxConnsPerHost limits & idle pool races
rsc Jun 28, 2019
0fddd66
doc: document Go 1.11.12
toothrot Jul 8, 2019
c893ea8
doc: document Go 1.12.7
toothrot Jul 8, 2019
a19c0ce
Revert "go/parser: include more comments in a struct or interface"
agnivade Jul 8, 2019
06ef108
cmd/compile: fix unsafeValue handles OLSH/ORSH wrong
cuonglm Jul 7, 2019
84fce98
cmd/cgo: fix check for conversion of ptr to struct field
notti Jul 7, 2019
726b1bf
runtime: expand comments on runtime panic checks
aclements Jun 11, 2019
0067586
cmd/go: add a Latest field to the output of 'go mod download -json'
bcmills Jun 25, 2019
a05c132
cmd/go/internal/modload: remove unused warnPattern function
bcmills Jul 9, 2019
a1bcee4
test: add a test for gccgo bug in handling break statement in a select
cherrymui Jul 10, 2019
9d56dd8
test: new testcase for gccgo compiler bug
thanm Jul 10, 2019
80cca23
strings: document that order of pairs matters in NewReplacer
rentziass Jul 9, 2019
a5f3823
net: set TestNotTemporaryRead flaky for AIX
Helflym Jul 11, 2019
e0739d1
test: add a test for gccgo bug #33062.
cherrymui Jul 11, 2019
7942671
doc/go1.13: document removal of NaCl targets in Go 1.14
qbradq Jul 10, 2019
e831719
cmd/cgo: do not rewrite call if there are more args than parameters
ianlancetaylor Jul 11, 2019
21f5484
cmd/go: improve module version query documentation
jayconrod Jul 12, 2019
89d300b
doc/go1.13: fix misspelling of "interpreted"
ALTree Jul 14, 2019
4b36588
cmd/go: add go command known variables to test cache hash
cuonglm May 28, 2019
b9edee3
cmd/go: check for source files in relative paths before attempting to…
bcmills Jul 9, 2019
20e4540
crypto/tls: remove TestVerifyHostnameResumed
FiloSottile Jul 15, 2019
24a6ca0
cmd/go/internal/modfetch: always check for a go.mod file when fetchin…
bcmills Jul 15, 2019
37b194a
cmd/link: put shlib ".type" functions in internal ABI
ianlancetaylor Jul 13, 2019
a6a7b14
crypto/tls: deprecate SSLv3 support
FiloSottile Jun 27, 2019
0da58d0
cmd/go: clarify error text for module path mismatch
jayconrod Jul 12, 2019
6bf2767
cmd/go: tighten the check for pseudo-version base tags
bcmills Jul 2, 2019
2bcbe6a
runtime: add a test for getg with thread switch
cherrymui Jul 16, 2019
0cadf40
cmd/go: tweak wording of module path mismatch error message
jayconrod Jul 16, 2019
b5df14c
CONTRIBUTORS: first round of updates for Go 1.13
dmitshur Jul 16, 2019
5bc46cb
doc/go1.13: remove 1.12 reference from 1.13 release notes
ALTree Jul 14, 2019
f93234a
net/http/httputil: fix regression in ReverseProxy.ServeHTTP
dsnet Jul 17, 2019
4814e7d
cmd/go: include GOEXPERIMENT flags in tool id for cache key
jayconrod Jul 15, 2019
196e67f
test: new testcase for gccgo bug
thanm Jul 18, 2019
34778e5
test: new testcase for gccgo bug
thanm Jul 18, 2019
5ba15db
cmd/go: suppress errors with '@upgrade' when the latest version is re…
bcmills Jul 17, 2019
4a2d3d0
cmd/go: in module mode, populate PackagePublic.Root with the module root
bcmills Dec 11, 2018
a005f99
cmd/go/internal/mvs: retain modules required by older versions
bcmills Jul 17, 2019
52fdd62
cmd/go/internal/mvs: in Req, omit versions implied by older-than-sele…
bcmills Jul 17, 2019
ba31496
time: clarify when draining a Timer's channel is needed
Jul 11, 2019
5b15510
runtime: align allocations harder in GODEBUG=sbrk=1 mode
aclements Jul 18, 2019
f518a96
cmd/go: document go get @upgrade behavior in release notes
jayconrod Jul 17, 2019
5e21032
Revert "cmd/go: move automatic testing.Init call into generated test …
bcmills Jul 18, 2019
b9df8df
doc/go1.13: mention the effect of testing.Init on package initialization
bcmills Jul 18, 2019
707f3e8
cmd/go: mention GODEBUG in "go help environment"
ianlancetaylor Jul 22, 2019
e8c7e63
test: new testcase for gccgo compiler failure
thanm Jul 22, 2019
68e2899
cmd/go: keep "go help" in unknown topic suggestion
jmartin82 Jul 23, 2019
9195948
os: document File's concurrent operation resource limits
odeke-em Jun 12, 2019
80f9d32
doc: mention that GOPATH/bin should be in PATH
rasky Jul 27, 2019
a25c287
doc: use <code> for a few file paths that didn't
mvdan Jul 27, 2019
c4ca603
all: change some function documentation to be more idiomatic
dominikh Jul 28, 2019
5235501
crypto/x509: add Ed25519 to ExampleParsePKIXPublicKey
FiloSottile Jun 20, 2019
7b8234b
go1.13.html: release note for %w
jba Jul 27, 2019
01d1372
runtime: use uintptr instead of int32 for counting to next heap profi…
randall77 Jul 29, 2019
fbb819e
strings: clarify usage of Title and ToTitle
aqtodd Jul 27, 2019
a41ebe6
runtime: add physHugePageShift
mknyszek Jul 16, 2019
8c3040d
runtime: call sysHugePage less often
mknyszek Jul 19, 2019
2fc7574
cmd/go/internal/cache: avoid ioutil.WriteFile for writing cache entries
bcmills Jul 26, 2019
5f8d816
cmd/go/internal/cache: verify that timestamp is positive
bcmills Jul 30, 2019
1ad64fa
net/http: improve Request.Form and Request.PostForm documentation
dndungu Jul 27, 2019
39d4178
spec: add an example of a trivially invalid interface
griesemer Jul 30, 2019
8dddf75
net/http: return nil from Header.Clone if the receiver is nil
andybons Jul 30, 2019
fe8a866
doc/go1.12: document change in syscall.Setrlimit behavior
andybons Jul 30, 2019
e81b731
encoding/json: clarify Marshal behavior for string keys of maps
eliben Jul 31, 2019
407010e
cmd/go: only pass -fsplit-stack to gccgo if supported
ianlancetaylor Jul 27, 2019
8a317eb
cmd/compile: don't eliminate all registers when restricting to desire…
randall77 Jul 30, 2019
ea8b0ac
all: remove os.ErrTemporary
neild Jul 31, 2019
d6f6a46
doc/go1.13: add more release notes for net/http
odeke-em Aug 1, 2019
e7c51ca
net/http: fix a typo in spelling of MultiPartForm
darrenmcc Aug 1, 2019
2d6ee6e
os: enable the close-on-exec flag for openFdAt
oiooj Aug 1, 2019
2d1a1e0
doc: fix Block interface parameters order
ALTree Aug 2, 2019
0e54d28
all: remove os.ErrTimeout
neild Aug 2, 2019
bdea352
doc/go1.13: document net/http.Transport.Request.Body unfurling
odeke-em Aug 1, 2019
316ac4f
cmd/compile: fix crash on write barrier insertion
randall77 Aug 2, 2019
07b3e62
cmd/go: report loading errors from 'go mod tidy' and 'go mod vendor'
bcmills Aug 2, 2019
55e23cb
doc/go1.13: mention confusion between keep-alive timeout and deadline
ianlancetaylor Aug 2, 2019
d178c58
os: don't consult Is methods on non-syscall error types
neild Aug 2, 2019
fc82166
os: change Readdirnames doc to follow that of Readdir
ianlancetaylor Jul 30, 2019
a2f5d64
doc/go1.13: add release notes for GOWASM environment variable
agnivade Aug 2, 2019
09c9d3a
net/http: fix typo in Response.Body's doc
shivi28 Aug 4, 2019
6c74db4
cmd/go: look for .go.buildinfo section when looking for ELF version
Infinoid Jul 31, 2019
6e11d81
cmd/go: adjust expected error message in TestScript/mod_invalid_version
bcmills Aug 5, 2019
d1338ec
syscall: include complete prototype of system calls
randall77 Jul 29, 2019
a4c8251
doc/go1.13.html: describe error-value additions
jba Aug 5, 2019
546ea78
errors: improve doc
jba Aug 2, 2019
8e82624
net: fix the docs in IPNet.String
Aug 6, 2019
46f99ce
cmd/go: look for __go_buildinfo section when looking for Mach-O version
jayconrod Aug 6, 2019
0ed86cd
doc: mention Unicode update in release notes
mpvl Aug 5, 2019
e37a1b1
cmd/go: improve error message for missing import starting with cmd/
jayconrod Aug 6, 2019
0ca4f6b
runtime/pprof: Mention goroutine label heritability
dfinkel Jul 31, 2019
e9782bd
path: fix mismatch between error message and corresponding test function
dphan72 Aug 7, 2019
f4be93a
doc: update list of archs supporting -race
ALTree Aug 7, 2019
fc23e21
api/go1.13: add debug/elf.Symbol fields added in CL 184099
FiloSottile Aug 8, 2019
c5178ef
Revert "go/ast: fix SortImports to handle block comments"
dsnet Aug 8, 2019
1dc0110
cmd/go: improve 'go mod download' and 'go list -m' error messages
jayconrod Aug 7, 2019
2b8b34a
cmd/go: query each path only once in 'go get'
bcmills Aug 8, 2019
3626252
doc/install-source.html: add new GOOS and GOARCHes
agnivade Aug 9, 2019
951143c
cmd/link: increase the function call limit in stkcheck
ianlancetaylor Aug 9, 2019
9c1f14f
doc/install-source: create distinction between steps that involve "gi…
pestophagous Aug 5, 2019
3928915
doc/go1.13: mention faster sync.Mutex/RWMutex/Once
CAFxX Aug 10, 2019
2754118
doc/asm: document go_asm.h only works in the runtime package
PureWhiteWu Aug 11, 2019
8b058cf
net: document that a keep-alive failure also returns a timeout
ianlancetaylor Aug 9, 2019
4550406
src/go.mod: sync golang.org/x/net with h2_bundle.go
FiloSottile Aug 11, 2019
61bb56a
net/url: make Hostname and Port predictable for invalid Host values
FiloSottile Aug 6, 2019
ad4ed87
doc/go1.13: add missing periods
toshihiro-shiino Aug 14, 2019
5f45a33
reflect: align first argument in callMethod
cherrymui Aug 14, 2019
395fd10
doc: document Go 1.12.8 and Go 1.11.13
dmitshur Aug 13, 2019
0212f04
doc: document Go 1.12.9
dmitshur Aug 15, 2019
4983a0b
Revert "time: optimize Sub"
dsnet Aug 16, 2019
bb5441d
cmd/gofmt: update TestRewrite to avoid future regressions
dsnet Aug 16, 2019
c485506
time: update TestSub to avoid future regressions
dsnet Aug 16, 2019
0dd120d
encoding/json: fix format string in the Fuzz func
dvyukov Aug 17, 2019
d6ffc1d
doc: rewrite reference to plan9.bell-labs.com to 9p.io
wgrr Aug 19, 2019
53c088f
cmd/go: fix "go help build -o" docs
FiloSottile Aug 19, 2019
7238523
doc/go1.13: mention '-o <directory>' support for 'go build'
bcmills Aug 20, 2019
c61c29f
cmd/go: accept GOSUMDB=sum.golang.google.cn
rsc Aug 21, 2019
eee07a8
Revert "encoding/json: avoid work when unquoting strings"
FiloSottile Aug 20, 2019
ed4f3f3
[release-branch.go1.13] go1.13rc1
andybons Aug 21, 2019
bd2e281
[release-branch.go1.13] strconv: update documentation
odeke-em Aug 21, 2019
d76bd21
[release-branch.go1.13] net/http: change TimeoutHandler's docs to mat…
jmhodges Aug 22, 2019
5c379a4
[release-branch.go1.13] net/http: update bundled golang.org/x/net/htt…
FiloSottile Aug 13, 2019
a5a92aa
[release-branch.go1.13] doc/go1.13: document _ between digits for mat…
odeke-em Aug 21, 2019
55a5beb
[release-branch.go1.13] doc/go1.13: document fmt's number syntax updates
odeke-em Aug 23, 2019
bc30423
[release-branch.go1.13] doc/go1.13: fix bad URLs to strconv identifiers
odeke-em Aug 25, 2019
ea9edab
[release-branch.go1.13] doc/go1.13: add missing slashes
toshihiro-shiino Aug 23, 2019
8eecefd
[release-branch.go1.13] doc/go1.13: add information about using priva…
katiehockman Aug 26, 2019
994ebd3
[release-branch.go1.13] doc: align documents link
obeis Aug 21, 2019
633d0c9
[release-branch.go1.13] cmd/vendor: update vendored x/arch repo to 8a…
cherrymui Aug 23, 2019
44a66ac
[release-branch.go1.13] net/http: fix wantConnQueue memory leaks in T…
bcmills Aug 26, 2019
c11853c
[release-branch.go1.13] crypto/tls: make SSLv3 again disabled by default
FiloSottile Aug 26, 2019
2e3989e
[release-branch.go1.13] cmd/go/internal/get: remove '--' separator fr…
bcmills Aug 27, 2019
1ae4e73
[release-branch.go1.13] cmd/go/internal/modload: fix swapped paths in…
bcmills Aug 27, 2019
450a918
[release-branch.go1.13] CONTRIBUTORS: second round of updates for Go …
dmitshur Aug 28, 2019
d7b402a
[release-branch.go1.13] go1.13rc2
andybons Aug 29, 2019
2e65ef6
[release-branch.go1.13] encoding/json: revert Compact HTML escaping d…
tmthrgd Aug 2, 2019
2f866fe
[release-branch.go1.13] doc/1.13: remove draft note and make various …
andybons Aug 28, 2019
fb7b50c
[release-branch.go1.13] doc: document Go 1.13
andybons Sep 2, 2019
b719a58
[release-branch.go1.13] net/http: make docs refer to Context.Value as…
extemporalgenome Aug 26, 2019
4c8037b
[release-branch.go1.13] os: skip TestPipeThreads on GOOS=darwin
odeke-em Aug 29, 2019
67d2a1e
[release-branch.go1.13] doc/go1.13: remove announcements of arm64 sup…
bcmills Sep 3, 2019
cc8838d
[release-branch.go1.13] go1.13
andybons Sep 3, 2019
befa17c
[release-branch.go1.13] doc: add Go 1.13 to release history
andybons Sep 3, 2019
b7ff8ff
[release-branch.go1.13] errors: fix wrong code in package doc
jba Sep 4, 2019
File filter...
Filter file types
Jump to…
The table of contents is too big for display.

Always

Just for now

The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -928,6 +928,7 @@ Maxim Khitrov <max@mxcrypt.com>
Maxime de Roucy <maxime.deroucy@gmail.com>
Máximo Cuadros Ortiz <mcuadros@gmail.com>
Maxwell Krohn <themax@gmail.com>
Maya Rashish <maya@netbsd.org>
Mayank Kumar <krmayankk@gmail.com>
MediaMath, Inc
Meir Fischer <meirfischer@gmail.com>

Large diffs are not rendered by default.

@@ -0,0 +1,13 @@
# Security Policy

## Supported Versions

We support the past two Go releases (for example, Go 1.11.x and Go 1.12.x).

See https://golang.org/wiki/Go-Release-Cycle and in particular the
[Release Maintenance](https://github.com/golang/go/wiki/Go-Release-Cycle#release-maintenance)
part of that page.

## Reporting a Vulnerability

See https://golang.org/security for how to report a vulnerability.
@@ -0,0 +1 @@
go1.13
@@ -457,3 +457,5 @@ pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint16
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Rdev uint32
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntfromname [88]int8
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntonname [88]int8
pkg text/scanner, const GoTokens = 1012
pkg unicode, const Version = "10.0.0"

Large diffs are not rendered by default.

@@ -377,8 +377,11 @@ <h3 id="Primitive_unprotected_variable">Primitive unprotected variable</h3>
<h2 id="Supported_Systems">Supported Systems</h2>

<p>
The race detector runs on <code>darwin/amd64</code>, <code>freebsd/amd64</code>,
<code>linux/amd64</code>, and <code>windows/amd64</code>.
The race detector runs on
<code>linux/amd64</code>, <code>linux/ppc64le</code>,
<code>linux/arm64</code>, <code>freebsd/amd64</code>,
<code>netbsd/amd64</code>, <code>darwin/amd64</code>,
and <code>windows/amd64</code>.
</p>

<h2 id="Runtime_Overheads">Runtime Overhead</h2>
@@ -57,59 +57,66 @@ <h2 id="introduction">A Quick Guide to Go's Assembler</h2>
println(3)
}
$ GOOS=linux GOARCH=amd64 go tool compile -S x.go # or: go build -gcflags -S x.go

--- prog list "main" ---
0000 (x.go:3) TEXT main+0(SB),$8-0
0001 (x.go:3) FUNCDATA $0,gcargs·0+0(SB)
0002 (x.go:3) FUNCDATA $1,gclocals·0+0(SB)
0003 (x.go:4) MOVQ $3,(SP)
0004 (x.go:4) PCDATA $0,$8
0005 (x.go:4) CALL ,runtime.printint+0(SB)
0006 (x.go:4) PCDATA $0,$-1
0007 (x.go:4) PCDATA $0,$0
0008 (x.go:4) CALL ,runtime.printnl+0(SB)
0009 (x.go:4) PCDATA $0,$-1
0010 (x.go:5) RET ,
"".main STEXT size=74 args=0x0 locals=0x10
0x0000 00000 (x.go:3) TEXT "".main(SB), $16-0
0x0000 00000 (x.go:3) MOVQ (TLS), CX
0x0009 00009 (x.go:3) CMPQ SP, 16(CX)
0x000d 00013 (x.go:3) JLS 67
0x000f 00015 (x.go:3) SUBQ $16, SP
0x0013 00019 (x.go:3) MOVQ BP, 8(SP)
0x0018 00024 (x.go:3) LEAQ 8(SP), BP
0x001d 00029 (x.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:3) FUNCDATA $2, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:4) PCDATA $0, $0
0x001d 00029 (x.go:4) PCDATA $1, $0
0x001d 00029 (x.go:4) CALL runtime.printlock(SB)
0x0022 00034 (x.go:4) MOVQ $3, (SP)
0x002a 00042 (x.go:4) CALL runtime.printint(SB)
0x002f 00047 (x.go:4) CALL runtime.printnl(SB)
0x0034 00052 (x.go:4) CALL runtime.printunlock(SB)
0x0039 00057 (x.go:5) MOVQ 8(SP), BP
0x003e 00062 (x.go:5) ADDQ $16, SP
0x0042 00066 (x.go:5) RET
0x0043 00067 (x.go:5) NOP
0x0043 00067 (x.go:3) PCDATA $1, $-1
0x0043 00067 (x.go:3) PCDATA $0, $-1
0x0043 00067 (x.go:3) CALL runtime.morestack_noctxt(SB)
0x0048 00072 (x.go:3) JMP 0
...
</pre>

<p>
The <code>FUNCDATA</code> and <code>PCDATA</code> directives contain information
for use by the garbage collector; they are introduced by the compiler.
</p>

<!-- Commenting out because the feature is gone but it's popular and may come back.
</p>

<p>
To see what gets put in the binary after linking, add the <code>-a</code> flag to the linker:
To see what gets put in the binary after linking, use <code>go tool objdump</code>:
</p>

<pre>
$ go tool 6l -a x.6 # or: go build -ldflags -a x.go
codeblk [0x2000,0x1d059) at offset 0x1000
002000 main.main | (3) TEXT main.main+0(SB),$8
002000 65488b0c25a0080000 | (3) MOVQ 2208(GS),CX
002009 483b21 | (3) CMPQ SP,(CX)
00200c 7707 | (3) JHI ,2015
00200e e83da20100 | (3) CALL ,1c250+runtime.morestack00
002013 ebeb | (3) JMP ,2000
002015 4883ec08 | (3) SUBQ $8,SP
002019 | (3) FUNCDATA $0,main.gcargs·0+0(SB)
002019 | (3) FUNCDATA $1,main.gclocals·0+0(SB)
002019 48c7042403000000 | (4) MOVQ $3,(SP)
002021 | (4) PCDATA $0,$8
002021 e8aad20000 | (4) CALL ,f2d0+runtime.printint
002026 | (4) PCDATA $0,$-1
002026 | (4) PCDATA $0,$0
002026 e865d40000 | (4) CALL ,f490+runtime.printnl
00202b | (4) PCDATA $0,$-1
00202b 4883c408 | (5) ADDQ $8,SP
00202f c3 | (5) RET ,
...
$ go build -o x.exe x.go
$ go tool objdump -s main.main x.exe
TEXT main.main(SB) /tmp/x.go
x.go:3 0x10501c0 65488b0c2530000000 MOVQ GS:0x30, CX
x.go:3 0x10501c9 483b6110 CMPQ 0x10(CX), SP
x.go:3 0x10501cd 7634 JBE 0x1050203
x.go:3 0x10501cf 4883ec10 SUBQ $0x10, SP
x.go:3 0x10501d3 48896c2408 MOVQ BP, 0x8(SP)
x.go:3 0x10501d8 488d6c2408 LEAQ 0x8(SP), BP
x.go:4 0x10501dd e86e45fdff CALL runtime.printlock(SB)
x.go:4 0x10501e2 48c7042403000000 MOVQ $0x3, 0(SP)
x.go:4 0x10501ea e8e14cfdff CALL runtime.printint(SB)
x.go:4 0x10501ef e8ec47fdff CALL runtime.printnl(SB)
x.go:4 0x10501f4 e8d745fdff CALL runtime.printunlock(SB)
x.go:5 0x10501f9 488b6c2408 MOVQ 0x8(SP), BP
x.go:5 0x10501fe 4883c410 ADDQ $0x10, SP
x.go:5 0x1050202 c3 RET
x.go:3 0x1050203 e83882ffff CALL runtime.morestack_noctxt(SB)
x.go:3 0x1050208 ebb6 JMP main.main(SB)
</pre>

-->

<h3 id="constants">Constants</h3>

<p>
@@ -266,7 +273,7 @@ <h3 id="symbols">Symbols</h3>
</p>

<p>
In Go object files and binaries, the full name of a symbol is the
In Go object files and binaries, the full name of a symbol is the
package path followed by a period and the symbol name:
<code>fmt.Printf</code> or <code>math/rand.Int</code>.
Because the assembler's parser treats period and slash as punctuation,
@@ -485,7 +492,7 @@ <h3 id="runtime">Runtime Coordination</h3>
At the start of the function, the arguments are assumed
to be initialized but the results are assumed uninitialized.
If the results will hold live pointers during a call instruction,
the function should start by zeroing the results and then
the function should start by zeroing the results and then
executing the pseudo-instruction <code>GO_RESULTS_INITIALIZED</code>.
This instruction records that the results are now initialized
and should be scanned during stack movement and garbage collection.
@@ -503,7 +510,7 @@ <h3 id="runtime">Runtime Coordination</h3>
The pointer information can also be omitted if the
function contains no call instructions.
Otherwise, the local stack frame must not contain pointers,
and the assembly must confirm this fact by executing the
and the assembly must confirm this fact by executing the
pseudo-instruction <code>NO_LOCAL_POINTERS</code>.
Because stack resizing is implemented by moving the stack,
the stack pointer may change during any function call:
@@ -583,27 +590,37 @@ <h3 id="x86">32-bit Intel 386</h3>
<p>
The runtime pointer to the <code>g</code> structure is maintained
through the value of an otherwise unused (as far as Go is concerned) register in the MMU.
A OS-dependent macro <code>get_tls</code> is defined for the assembler if the source includes
a special header, <code>go_asm.h</code>:
An OS-dependent macro <code>get_tls</code> is defined for the assembler if the source is
in the <code>runtime</code> package and includes a special header, <code>go_tls.h</code>:
</p>

<pre>
#include "go_asm.h"
#include "go_tls.h"
</pre>

<p>
Within the runtime, the <code>get_tls</code> macro loads its argument register
with a pointer to the <code>g</code> pointer, and the <code>g</code> struct
contains the <code>m</code> pointer.
There's another special header containing the offsets for each
element of <code>g</code>, called <code>go_asm.h</code>.
The sequence to load <code>g</code> and <code>m</code> using <code>CX</code> looks like this:
</p>

<pre>
#include "go_tls.h"
#include "go_asm.h"
...
get_tls(CX)
MOVL g(CX), AX // Move g into AX.
MOVL g_m(AX), BX // Move g.m into BX.
</pre>

<p>
Note: The code above works only in the <code>runtime</code> package, while <code>go_tls.h</code> also
applies to <a href="#arm">arm</a>, <a href="#amd64">amd64</a> and amd64p32, and <code>go_asm.h</code> applies to all architectures.
</p>

<p>
Addressing modes:
</p>
@@ -18,10 +18,8 @@

<p>
The programs can also be run as stand-alone binaries, with unmodified arguments,
using the go <code>tool</code> subcommand, such as <code>go tool vet</code>.
This style of invocation allows, for instance, checking a single source file
rather than an entire package: <code>go tool vet myprogram.go</code> as
compared to <code>go vet mypackage</code>.
using the go <code>tool</code> subcommand, such as <code>go tool cgo</code>.
For most commands this is mainly useful for debugging.
Some of the commands, such as <code>pprof</code>, are accessible only through
the go <code>tool</code> subcommand.
</p>
@@ -76,7 +74,7 @@
</tr>

<tr>
<td><a href="/cmd/go/">fmt</a></td>
<td><a href="/cmd/gofmt/">fmt</a></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>Fmt formats Go packages, it is also available as an independent <a href="/cmd/gofmt/">
gofmt</a> command with more general options.</td>
@@ -304,12 +304,12 @@ <h3 id="Command">Your first program</h3>
<pre>
$ <b>cd $GOPATH/src/github.com/user/hello</b>
$ <b>git init</b>
Initialized empty Git repository in /home/user/work/src/github.com/user/hello/.git/
Initialized empty Git repository in /home/user/go/src/github.com/user/hello/.git/
$ <b>git add hello.go</b>
$ <b>git commit -m "initial commit"</b>
[master (root-commit) 0b4507d] initial commit
1 file changed, 1 insertion(+)
create mode 100644 hello.go
1 file changed, 7 insertion(+)
create mode 100644 hello.go
</pre>

<p>
@@ -34,6 +34,8 @@ <h3 id="release"><a href="/doc/devel/release.html">Release History</a></h3>
<p>A <a href="/doc/devel/release.html">summary</a> of the changes between Go releases. Notes for the major releases:</p>

<ul>
<li><a href="/doc/go1.13">Go 1.13</a> <small>(September 2019)</small></li>
<li><a href="/doc/go1.12">Go 1.12</a> <small>(February 2019)</small></li>
<li><a href="/doc/go1.11">Go 1.11</a> <small>(August 2018)</small></li>
<li><a href="/doc/go1.10">Go 1.10</a> <small>(February 2018)</small></li>
<li><a href="/doc/go1.9">Go 1.9</a> <small>(August 2017)</small></li>
@@ -26,7 +26,7 @@

<h2 id="contributor">Becoming a contributor</h2>

<h3>Overview</h3>
<h3 id="contrib_overview">Overview</h3>

<p>
The first step is registering as a Go contributor and configuring your environment.
@@ -46,7 +46,8 @@ <h3>Overview</h3>
<li>
<b>Step 2</b>: Configure authentication credentials for the Go Git repository.
Visit <a href="https://go.googlesource.com/">go.googlesource.com</a>, click
on "Generate Password" (top right), and follow the instructions.
on the gear icon (top right), then on "Obtain password", and follow the
instructions.
</li>
<li>
<b>Step 3</b>: Register for Gerrit, the code review tool used by the Go team,
@@ -237,14 +238,16 @@ <h3 id="git-codereview_install">Step 4: Install the git-codereview command</h3>
</pre>

<p>
prints help text, not an error.
prints help text, not an error. If it prints an error, make sure that
<code>$GOPATH/bin</code> is in your <code>$PATH</code>.
</p>

<p>
On Windows, when using git-bash you must make sure that
<code>git-codereview.exe</code> is in your <code>git</code> exec-path.
Run <code>git --exec-path</code> to discover the right location then create a
symbolic link or just copy the executable from $GOPATH/bin to this directory.
symbolic link or just copy the executable from <code>$GOPATH/bin</code> to this
directory.
</p>


@@ -260,7 +263,7 @@ <h2 id="before_contributing">Before contributing code</h2>
an <a href="https://golang.org/issues">existing one</a>.
</p>

<h3>Check the issue tracker</h3>
<h3 id="check_tracker">Check the issue tracker</h3>

<p>
Whether you already know what contribution to make, or you are searching for
@@ -397,7 +400,7 @@ <h2 id="sending_a_change_gerrit">Sending a change via Gerrit</h2>
the flow.
</p>

<h3>Overview</h3>
<h3 id="gerrit_overview">Overview</h3>

<p>
This is an overview of the overall process:
@@ -665,7 +668,7 @@ <h2 id="commit_messages">Good commit messages</h2>
Fixes #159
</pre>

<h3>First line</h3>
<h3 id="first_line">First line</h3>

<p>
The first line of the change description is conventionally a short one-line
@@ -683,7 +686,7 @@ <h3>First line</h3>
Follow the first line by a blank line.
</p>

<h3>Main content</h3>
<h3 id="main_content">Main content</h3>

<p>
The rest of the description elaborates and should provide context for the
@@ -701,7 +704,7 @@ <h3>Main content</h3>
benchmark data for change descriptions.
</p>

<h3>Referencing issues</h3>
<h3 id="ref_issues">Referencing issues</h3>

<p>
The special notation "Fixes #12345" associates the change with issue 12345 in the
@@ -149,6 +149,9 @@ <h3 id="Go_Extensions">Go Extensions</h3>
(gdb) <b>help goroutine</b></pre>
For example:
<pre>(gdb) <b>goroutine 12 bt</b></pre>
You can inspect all goroutines by passing <code>all</code> instead of a specific goroutine's ID.
For example:
<pre>(gdb) <b>goroutine all bt</b></pre>
</li>
</ul>

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.