go/src
Brad Fitzpatrick d24f446a90 crypto/tls: add Config.Clone
In Go 1.0, the Config struct consisted only of exported fields.

In Go 1.1, it started to grow private, uncopyable fields (sync.Once,
sync.Mutex, etc).

Ever since, people have been writing their own private Config.Clone
methods, or risking it and doing a language-level shallow copy and
copying the unexported sync variables.

Clean this up and export the Config.clone method as Config.Clone.
This matches the convention of Template.Clone from text/template and
html/template at least.

Fixes #15771
Updates #16228 (needs update in x/net/http2 before fixed)
Updates #16492 (not sure whether @agl wants to do more)

Change-Id: I48c2825d4fef55a75d2f99640a7079c56fce39ca
Reviewed-on: https://go-review.googlesource.com/28075
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-09-01 04:26:12 +00:00
..
archive archive/tar: make Reader error handling consistent 2016-08-31 23:22:53 +00:00
bufio
builtin
bytes bytes: add examples 2016-08-16 01:33:32 +00:00
cmd cmd/compile: don't reserve X15 for float sub/div any more 2016-08-31 20:35:49 +00:00
compress compress/flate: always return uncompressed data in the event of error 2016-08-31 01:12:02 +00:00
container container/list: silence vet warnings 2016-08-16 14:35:37 +00:00
context all: use time.Until where applicable 2016-08-30 01:23:46 +00:00
crypto crypto/tls: add Config.Clone 2016-09-01 04:26:12 +00:00
database/sql database/sql: don't hang if the driver Exec method panics 2016-08-29 16:51:56 +00:00
debug all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
encoding encoding/xml: do not ignore error return from copyValue 2016-08-22 18:01:47 +00:00
errors
expvar
flag flag: improve comment for calling String with zero value 2016-08-23 22:07:43 +00:00
fmt
go all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
hash hash/crc32: cleanup code and improve tests 2016-08-31 15:17:57 +00:00
html
image
index/suffixarray index/suffixarray: add Lookup example 2016-08-21 01:10:22 +00:00
internal internal/testenv: make MustHaveSymlink message friendly 2016-08-24 05:08:52 +00:00
io io: fix comment in test 2016-08-22 22:27:59 +00:00
log log/syslog: document that Dial uses net.Dial parameters, add example 2016-08-19 01:01:47 +00:00
math math: speed up bessel functions on AMD64 2016-08-31 14:45:29 +00:00
mime mime/quotedprintable: add examples 2016-08-29 17:39:21 +00:00
net crypto/tls: add Config.Clone 2016-09-01 04:26:12 +00:00
os all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
path path/filepath: handle ".." in normalizing a path on Windows 2016-08-30 20:01:49 +00:00
reflect reflect: cleanup wording for type identity/equality 2016-08-30 22:40:52 +00:00
regexp regexp: add some tests that were fixed in #12980 2016-08-16 18:36:43 +00:00
runtime Revert "runtime: improve memmove for amd64" 2016-08-31 21:07:35 +00:00
sort
strconv
strings strings: add special cases for Join of 2 and 3 strings 2016-08-16 00:33:15 +00:00
sync cmd/compile: intrinsify sync/atomic for amd64 2016-08-30 15:23:23 +00:00
syscall syscall: add some debugging to TestGetfsstat 2016-08-31 05:14:30 +00:00
testing testing: respect benchtime on very fast benchmarks 2016-08-10 19:44:08 +00:00
text text/template: remove unused Tree.parse return value 2016-08-17 22:36:27 +00:00
time time: Add Until helper function 2016-08-30 00:10:47 +00:00
unicode
unsafe unsafe: document use of &^ to round/align pointers 2016-08-18 16:45:17 +00:00
vendor/golang_org/x/net vendor: update vendored route 2016-08-24 00:14:58 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: use go list to get pkg dir 2016-08-29 15:24:39 +00:00
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc