]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: link to https instead of http
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 10 Jul 2015 23:17:11 +0000 (17:17 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 11 Jul 2015 14:36:33 +0000 (14:36 +0000)
The one in misc/makerelease/makerelease.go is particularly bad and
probably warrants rotating our keys.

I didn't update old weekly notes, and reverted some changes involving
test code for now, since we're late in the Go 1.5 freeze. Otherwise,
the rest are all auto-generated changes, and all manually reviewed.

Change-Id: Ia2753576ab5d64826a167d259f48a2f50508792d
Reviewed-on: https://go-review.googlesource.com/12048
Reviewed-by: Rob Pike <r@golang.org>
107 files changed:
doc/gccgo_install.html
doc/go1.5.html
misc/cgo/test/cflags.go
misc/cgo/test/issue3945.go
misc/cgo/test/issue6997_linux.go
misc/cgo/test/issue7234_test.go
misc/cgo/test/setgid_linux.go
misc/chrome/gophertool/gopher.js
misc/makerelease/makerelease.go
misc/makerelease/windows/installer.wxs
misc/nacl/README
src/archive/zip/testdata/readme.notzip
src/archive/zip/testdata/readme.zip
src/cmd/api/goapi_test.go
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go
src/cmd/cgo/out.go
src/cmd/compile/internal/big/int_test.go
src/cmd/dist/build.go
src/cmd/go/build.go
src/cmd/go/vcs.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/macho.go
src/cmd/newlink/pclntab.go
src/cmd/vet/rangeloop.go
src/compress/flate/deflate_test.go
src/crypto/rand/util_test.go
src/crypto/tls/conn.go
src/crypto/tls/tls_test.go
src/database/sql/sql.go
src/database/sql/sql_test.go
src/encoding/json/encode.go
src/encoding/json/tagkey_test.go
src/go/types/api.go
src/html/template/clone_test.go
src/image/draw/draw.go
src/image/gif/reader.go
src/image/image.go
src/math/all_test.go
src/math/big/int_test.go
src/mime/multipart/multipart_test.go
src/net/fd_unix.go
src/net/http/client.go
src/net/http/client_test.go
src/net/http/cookie.go
src/net/http/httputil/reverseproxy_test.go
src/net/http/serve_test.go
src/net/http/server.go
src/net/http/transport.go
src/net/http/transport_test.go
src/net/rpc/client_test.go
src/net/tcpsock_posix.go
src/os/exec/exec.go
src/os/exec/exec_test.go
src/os/os_test.go
src/path/filepath/path_test.go
src/race.bash
src/race.bat
src/reflect/makefunc.go
src/reflect/type.go
src/runtime/crash_cgo_test.go
src/runtime/debug/garbage.go
src/runtime/extern.go
src/runtime/heapdump.go
src/runtime/malloc.go
src/runtime/mgc.go
src/runtime/pprof/pprof.go
src/runtime/pprof/trace_test.go
src/runtime/proc1.go
src/runtime/race/doc.go
src/runtime/runtime2.go
src/runtime/stack_test.go
src/runtime/sys_x86.go
src/runtime/trace.go
src/syscall/syscall_unix_test.go
src/testing/testing.go
src/time/time_test.go
test/const4.go
test/const5.go
test/fixedbugs/bug214.go
test/fixedbugs/bug215.go
test/fixedbugs/bug216.go
test/fixedbugs/bug217.go
test/fixedbugs/bug218.go
test/fixedbugs/bug221.go
test/fixedbugs/bug264.go
test/fixedbugs/bug265.go
test/fixedbugs/bug269.go
test/fixedbugs/bug271.go
test/fixedbugs/bug272.go
test/fixedbugs/bug273.go
test/fixedbugs/bug274.go
test/fixedbugs/bug279.go
test/fixedbugs/bug280.go
test/fixedbugs/bug281.go
test/fixedbugs/bug283.go
test/fixedbugs/bug285.go
test/fixedbugs/bug290.go
test/fixedbugs/bug291.go
test/fixedbugs/bug292.go
test/fixedbugs/bug293.go
test/fixedbugs/bug294.go
test/fixedbugs/bug301.go
test/fixedbugs/bug425.go
test/fixedbugs/bug427.go
test/fixedbugs/issue4365.go

index 8f744a6216bcab0bfc90f45e2c584d98ccbe46f8..ef27fd1818265128e808900067fe71b47072dea1 100644 (file)
@@ -183,7 +183,7 @@ export LIBRARY_PATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
 The gccgo compiler works like other gcc frontends.  As of GCC 5 the gccgo
 installation also includes a version of the <code>go</code> command,
 which may be used to build Go programs as described at
-<a href="http://golang.org/cmd/go">http://golang.org/cmd/go</a>.
+<a href="https://golang.org/cmd/go">https://golang.org/cmd/go</a>.
 </p>
 
 <p>
index 782e839565ddad94d2da8b95b7fa4976d4c7bb59..493209df1dcfb38b80999d65cd59d4c5e8d0efc8 100644 (file)
@@ -38,7 +38,7 @@ number of cores available; in prior releases it defaulted to 1.
 </li>
 
 <li>
-Support for <a href="http://golang.org/s/go14internal">internal packages</a>
+Support for <a href="https://golang.org/s/go14internal">internal packages</a>
 is now provided for all repositories, not just the Go core.
 </li>
 
index 313824a10e9937a3f894b7358f5d0a4cdb0d9af0..6571fe02dcefa2b615d0c8ca860bd3f786a3dbb7 100644 (file)
@@ -4,7 +4,7 @@
 
 // Test that the #cgo CFLAGS directive works,
 // with and without platform filters.
-// See http://golang.org/issue/5224 for details.
+// See https://golang.org/issue/5224 for details.
 package cgotest
 
 /*
index 331cd0baf5b6cbac94af223422388f2b45239cd4..7e6863f7b6b1a7af9c66245dd689ab0f59193a74 100644 (file)
@@ -5,7 +5,7 @@
 package cgotest
 
 // Test that cgo reserves enough stack space during cgo call.
-// See http://golang.org/issue/3945 for details.
+// See https://golang.org/issue/3945 for details.
 
 // #include <stdio.h>
 //
index 5455f0c536af86f7cfde387c7b48506c38db830a..07fd58e399cfbc39c80931df2de81b36162ecb33 100644 (file)
@@ -4,7 +4,7 @@
 
 // Test that pthread_cancel works as expected
 // (NPTL uses SIGRTMIN to implement thread cancellation)
-// See http://golang.org/issue/6997
+// See https://golang.org/issue/6997
 package cgotest
 
 /*
index 604dfad4ba660fcc355d29bf5f58be9182755b44..a020b6a724994ecbaf921a8d6661e06bd7653ab9 100644 (file)
@@ -7,7 +7,7 @@ package cgotest
 import "testing"
 
 // This test actually doesn't have anything to do with cgo.  It is a
-// test of http://golang.org/issue/7234, a compiler/linker bug in
+// test of https://golang.org/issue/7234, a compiler/linker bug in
 // handling string constants when using -linkmode=external.  The test
 // is in this directory because we routinely test -linkmode=external
 // here.
index 4da0d300e9975c8072f2fe25fb6d3ae6e5fd95ed..197f01fb7e1366e260f187b9325d15baf4c4458d 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Test that setgid does not hang on GNU/Linux.
-// See http://golang.org/issue/3871 for details.
+// See https://golang.org/issue/3871 for details.
 
 package cgotest
 
index c09c4ef10c044201550e19e5f85716120cd4b37c..09edb2957bdeadc11f57a7968ca145fce7bbd8c3 100644 (file)
@@ -23,7 +23,7 @@ function urlForInput(t) {
     }
 
     if (gerritChangeIdRE.test(t)) {
-        return "http://golang.org/cl/" + t;
+        return "https://golang.org/cl/" + t;
     }
 
     var match = commitRE.exec(t);
@@ -34,7 +34,7 @@ function urlForInput(t) {
     if (pkgRE.test(t)) {
         // TODO: make this smarter, using a list of packages + substring matches.
         // Get the list from godoc itself in JSON format?
-        return "http://golang.org/pkg/" + t;
+        return "https://golang.org/pkg/" + t;
     }
 
     return null;
index 054cf6f7885582ff0f90d51129f7396cccc28090..8f3a45e17146695aa93ebd674e8d479c08a511bf 100644 (file)
@@ -51,7 +51,7 @@ var (
        uploadURL       = flag.String("upload_url", defaultUploadURL, "Upload URL")
 
        defaultCacheFile = filepath.Join(os.Getenv("HOME"), ".makerelease-request-token")
-       defaultUploadURL = "http://golang.org/dl/upload"
+       defaultUploadURL = "https://golang.org/dl/upload"
 )
 
 const (
index 01178e26514266652e014ba174f99c0a5aea5cb1..29fe403d09e2be3bef2042a675265f1e84fadf16 100644 (file)
@@ -22,7 +22,7 @@
     Language="1033"\r
     Codepage="1252"\r
     Version="$(var.WixGoVersion)"\r
-    Manufacturer="http://golang.org"\r
+    Manufacturer="https://golang.org"\r
     UpgradeCode="$(var.UpgradeCode)" >\r
 \r
 <Package\r
index b7163d3d73f94a1d30c9e2594255bae664ef1b51..99b94dc90ae425357424ff4a731f2442fa1ef3e9 100644 (file)
@@ -11,7 +11,7 @@ Go 1.3 supports three architectures
    limited to a 4gb window.
  * nacl/arm which is 32-bit ARMv7A architecture with 1GB address space.
 
-For background it is recommended that you read http://golang.org/s/go13nacl.
+For background it is recommended that you read https://golang.org/s/go13nacl.
 
 Prerequisites
 -------------
index 06668c4c1c01901d5738e9583cacb5671a19130b..81737275c6ebf5ea69b992753ab4050f031f31b8 100644 (file)
Binary files a/src/archive/zip/testdata/readme.notzip and b/src/archive/zip/testdata/readme.notzip differ
index db3bb900e4e9f30bafa25fec963df4dba21a464d..5642a67e77d5f5a45c92ea701801ae0b993f4724 100644 (file)
Binary files a/src/archive/zip/testdata/readme.zip and b/src/archive/zip/testdata/readme.zip differ
index 6184e1447713c05133bbb15decbf446ab7122dcd..1d2cc9ac8214d50bffb962f96c2b9615ff7ed2dd 100644 (file)
@@ -115,7 +115,7 @@ func TestCompareAPI(t *testing.T) {
                        out:       "",
                },
                {
-                       // http://golang.org/issue/4303
+                       // https://golang.org/issue/4303
                        name: "contexts reconverging",
                        required: []string{
                                "A",
index 6e6f3c7708a508f18b630772ab2ec6a74e7eff20..99cd4cd134a16c2ba467346dc6ec2891387eaad4 100644 (file)
@@ -29,14 +29,14 @@ not be referenced from Go code; static functions are permitted.
 
 See $GOROOT/misc/cgo/stdio and $GOROOT/misc/cgo/gmp for examples.  See
 "C? Go? Cgo!" for an introduction to using cgo:
-http://golang.org/doc/articles/c_go_cgo.html.
+https://golang.org/doc/articles/c_go_cgo.html.
 
 CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS may be defined with pseudo #cgo
 directives within these comments to tweak the behavior of the C or C++
 compiler.  Values defined in multiple directives are concatenated
 together.  The directive can include a list of build constraints limiting its
 effect to systems satisfying one of the constraints
-(see http://golang.org/pkg/go/build/#hdr-Build_Constraints for details about the constraint syntax).
+(see https://golang.org/pkg/go/build/#hdr-Build_Constraints for details about the constraint syntax).
 For example:
 
        // #cgo CFLAGS: -DPNG_DEBUG=1
index 1624d980ff2044bb835256905ea1f8f4581474c2..84f4978f63a024f4441b6106609a9dd38d9c4048 100644 (file)
@@ -781,7 +781,7 @@ func (p *Package) gccCmd() []string {
                        // incorrectly typed unsigned long. We work around that
                        // by disabling the builtin functions (this is safe as
                        // it won't affect the actual compilation of the C code).
-                       // See: http://golang.org/issue/6506.
+                       // See: https://golang.org/issue/6506.
                        "-fno-builtin",
                )
        }
index 3edb70345d337d045b0d97fdae44c840b4e68f17..3b24ef1365e367c78998dd67c4c5cb0c7ac868f0 100644 (file)
@@ -656,7 +656,7 @@ func (p *Package) writeGccgoOutputFunc(fgcc *os.File, n *Name) {
 // used to match gc's struct layout. For example, on 386 Windows,
 // gcc wants to 8-align int64s, but gc does not.
 // Use __gcc_struct__ to work around http://gcc.gnu.org/PR52991 on x86,
-// and http://golang.org/issue/5603.
+// and https://golang.org/issue/5603.
 func (p *Package) packedAttribute() string {
        s := "__attribute__((__packed__"
        if !p.GccIsClang && (goarch == "amd64" || goarch == "386") {
index c19e88addbbcf373b6d52fb956e8bbb7369a9b7e..16eed9a770e55a1989de03dc5dcf336cb36e835f 100644 (file)
@@ -693,7 +693,7 @@ var primes = []string{
        "10953742525620032441",
        "17908251027575790097",
 
-       // http://golang.org/issue/638
+       // https://golang.org/issue/638
        "18699199384836356663",
 
        "98920366548084643601728869055592650835572950932266967461790948584315647051443",
index 5da0b90e48c8de77928556a82dac5ceed9ab1a77..f557238e5962271e0dd522505e61bcad8981ba3d 100644 (file)
@@ -1012,7 +1012,7 @@ func cmdbootstrap() {
                        "*** %s still exists. ***\n"+
                        "It probably contains stale files that may confuse the build.\n"+
                        "Please (check what's there and) remove it and try again.\n"+
-                       "See http://golang.org/s/go14nopkg\n",
+                       "See https://golang.org/s/go14nopkg\n",
                        pathf("%s/src/pkg", goroot))
        }
 
index e678367ff8ea6dbb9dc1841ea6b96be0639b9a71..0e78328829f28342151934d3f81f140d4b57cafb 100644 (file)
@@ -1433,7 +1433,7 @@ func (b *builder) build(a *action) (err error) {
        // NOTE(rsc): On Windows, it is critically important that the
        // gcc-compiled objects (cgoObjects) be listed after the ordinary
        // objects in the archive.  I do not know why this is.
-       // http://golang.org/issue/2601
+       // https://golang.org/issue/2601
        objects = append(objects, cgoObjects...)
 
        // Add system object files.
@@ -1937,7 +1937,7 @@ func (b *builder) runOut(dir string, desc string, env []string, cmdargs ...inter
                // Sleeping when we observe the race seems to be the most reliable
                // option we have.
                //
-               // http://golang.org/issue/3001
+               // https://golang.org/issue/3001
                //
                if err != nil && nbusy < 3 && strings.Contains(err.Error(), "text file busy") {
                        time.Sleep(100 * time.Millisecond << uint(nbusy))
@@ -2838,7 +2838,7 @@ func (b *builder) ccompilerCmd(envvar, defcmd, objdir string) []string {
 
        // On OS X, some of the compilers behave as if -fno-common
        // is always set, and the Mach-O linker in 6l/8l assumes this.
-       // See http://golang.org/issue/3253.
+       // See https://golang.org/issue/3253.
        if goos == "darwin" {
                a = append(a, "-fno-common")
        }
@@ -3111,7 +3111,7 @@ func (b *builder) cgo(p *Package, cgoExe, obj string, pcCFLAGS, pcLDFLAGS, cgofi
 
        // NOTE(rsc): The importObj is a 5c/6c/8c object and on Windows
        // must be processed before the gcc-generated objects.
-       // Put it first.  http://golang.org/issue/2601
+       // Put it first.  https://golang.org/issue/2601
        outObj = stringList(nonGccObjs, ofile)
 
        return outGo, outObj, nil
index 5e7619d1da23c3c8eae5e507d9026dd97faef6c4..ea7dd1c1df4e9d56de71406e69074810320109b8 100644 (file)
@@ -317,7 +317,7 @@ func (v *vcsCmd) run1(dir string, cmdline string, keyval []string, verbose bool)
        _, err := exec.LookPath(v.cmd)
        if err != nil {
                fmt.Fprintf(os.Stderr,
-                       "go: missing %s command. See http://golang.org/s/gogetcmd\n",
+                       "go: missing %s command. See https://golang.org/s/gogetcmd\n",
                        v.name)
                return nil, err
        }
index ab92b9430fe8a26597f6dc409b7be7d8296c705a..33f250da48c761ac847b3d01c0f7c47117aac986 100644 (file)
@@ -487,7 +487,7 @@ func relocsym(s *LSym) {
 
                        // On amd64, 4-byte offsets will be sign-extended, so it is impossible to
                        // access more than 2GB of static data; fail at link time is better than
-                       // fail at runtime. See http://golang.org/issue/7980.
+                       // fail at runtime. See https://golang.org/issue/7980.
                        // Instead of special casing only amd64, we treat this as an error on all
                        // 64-bit architectures so as to be future-proof.
                        if int32(o) < 0 && Thearch.Ptrsize > 4 && siz == 4 {
index 7864d1a68f8fd3db63b9c082b6f151cf7422aae3..cf52f2e1e92a9e0805e7fde259ca11c6a88e7a4b 100644 (file)
@@ -1668,7 +1668,7 @@ func doelf() {
        // generate .tbss section (except for OpenBSD where it's not supported)
        // for dynamic internal linker or external linking, so that various
        // binutils could correctly calculate PT_TLS size.
-       // see http://golang.org/issue/5200.
+       // see https://golang.org/issue/5200.
        if HEADTYPE != obj.Hopenbsd {
                if Debug['d'] == 0 || Linkmode == LinkExternal {
                        Addstring(shstrtab, ".tbss")
index 68531069c3d1295f18040c947f169b7cd1b9a891..ccc84915c0eaa8e30d3e790ef3844f0a21f8e57a 100644 (file)
@@ -645,7 +645,7 @@ func machogenasmsym(put func(*LSym, string, int, int64, int64, int, *LSym)) {
 func machosymorder() {
        // On Mac OS X Mountain Lion, we must sort exported symbols
        // So we sort them here and pre-allocate dynid for them
-       // See http://golang.org/issue/4029
+       // See https://golang.org/issue/4029
        for i := 0; i < len(dynexp); i++ {
                dynexp[i].Reachable = true
        }
index 7f8bf52a9be1efde856c5319c80607a3b8a3ec6e..0a4cfc9c46f2d77eeb68d2e9d401058e4cd38e5a 100644 (file)
@@ -22,7 +22,7 @@ var zerofunc goobj.Func
 // information during garbage collection. The symbol created is named
 // "pclntab" for historical reasons; the scope of the table has grown to
 // include more than just PC/line number correspondences.
-// The table format is documented at http://golang.org/s/go12symtab.
+// The table format is documented at https://golang.org/s/go12symtab.
 func (p *Prog) pclntab() {
        // Count number of functions going into the binary,
        // so that we can size the initial index correctly.
index 96e2ca806267591bbe8d76dc106326bc7e801505..11eef59d90cd043071cf710ea8d16161c51880ab 100644 (file)
@@ -16,7 +16,7 @@ For example:
                }()
        }
 
-See: http://golang.org/doc/go_faq.html#closures_and_goroutines
+See: https://golang.org/doc/go_faq.html#closures_and_goroutines
 */
 
 package main
index 53bfd264382586cabc746db6918a057a1c6f071c..d5d6e732cf1192305a874a79e45f0ee35eb7a3d8 100644 (file)
@@ -407,7 +407,7 @@ func TestWriterDict(t *testing.T) {
        }
 }
 
-// See http://golang.org/issue/2508
+// See https://golang.org/issue/2508
 func TestRegression2508(t *testing.T) {
        if testing.Short() {
                t.Logf("test disabled with -short")
index 1e2a4dd84b715da3478e242f69e48e80552bb425..2f7cba8364a3e30f7cfbdf369971cd164005efa2 100644 (file)
@@ -10,7 +10,7 @@ import (
        "testing"
 )
 
-// http://golang.org/issue/6849.
+// https://golang.org/issue/6849.
 func TestPrimeSmall(t *testing.T) {
        for n := 2; n < 10; n++ {
                p, err := rand.Prime(rand.Reader, n)
index cad471859f5872a8437b1cc0d84e38ac30755a06..b5df3dbf2d9b32d88e9463f34c43dff860641873 100644 (file)
@@ -923,7 +923,7 @@ func (c *Conn) Read(b []byte) (n int, err error) {
                // tried to reuse the HTTP connection for a new
                // request.
                // See https://codereview.appspot.com/76400046
-               // and http://golang.org/issue/3514
+               // and https://golang.org/issue/3514
                if ri := c.rawInput; ri != nil &&
                        n != 0 && err == nil &&
                        c.input == nil && len(ri.data) > 0 && recordType(ri.data[0]) == recordTypeAlert {
index e82579eee9f638ca9bee8aabdef818996b89d0b3..eb709644a10f65f7249fb22605861ad3b7588a83 100644 (file)
@@ -40,7 +40,7 @@ D2lWusoe2/nEqfDVVWGWlyJ7yOmqaVm/iNUN9B2N2g==
 `
 
 // keyPEM is the same as rsaKeyPEM, but declares itself as just
-// "PRIVATE KEY", not "RSA PRIVATE KEY".  http://golang.org/issue/4477
+// "PRIVATE KEY", not "RSA PRIVATE KEY".  https://golang.org/issue/4477
 var keyPEM = `-----BEGIN PRIVATE KEY-----
 MIIBOwIBAAJBANLJhPHhITqQbPklG3ibCVxwGMRfp/v4XqhfdQHdcVfHap6NQ5Wo
 k/4xIA+ui35/MmNartNuC+BdZ1tMuVCPFZcCAwEAAQJAEJ2N+zsR0Xn8/Q6twa4G
index aeb5c0e382c14fd426444e6bee48bd434fda0959..17afa4966b71e89eec218653093d61fb6c697d1d 100644 (file)
@@ -6,10 +6,10 @@
 // databases.
 //
 // The sql package must be used in conjunction with a database driver.
-// See http://golang.org/s/sqldrivers for a list of drivers.
+// See https://golang.org/s/sqldrivers for a list of drivers.
 //
 // For more usage examples, see the wiki page at
-// http://golang.org/s/sqlwiki.
+// https://golang.org/s/sqlwiki.
 package sql
 
 import (
@@ -454,7 +454,7 @@ var connectionRequestQueueSize = 1000000
 //
 // Most users will open a database via a driver-specific connection
 // helper function that returns a *DB. No database drivers are included
-// in the Go standard library. See http://golang.org/s/sqldrivers for
+// in the Go standard library. See https://golang.org/s/sqldrivers for
 // a list of third-party drivers.
 //
 // Open may just validate its arguments without creating a connection
index 1c3a6855b414e173a8616fba2450bd244a15c26d..432a641b85549632dba855b4500a7bf32a209ae4 100644 (file)
@@ -497,7 +497,7 @@ func TestTxStmt(t *testing.T) {
        }
 }
 
-// Issue: http://golang.org/issue/2784
+// Issue: https://golang.org/issue/2784
 // This test didn't fail before because we got lucky with the fakedb driver.
 // It was failing, and now not, in github.com/bradfitz/go-sql-test
 func TestTxQuery(t *testing.T) {
index 7789bb5141cbbf9735d21aef11158f2d8d3b5710..08bb67134e9843fefe01abe8149439040b70e383 100644 (file)
@@ -7,7 +7,7 @@
 // in the documentation for the Marshal and Unmarshal functions.
 //
 // See "JSON and Go" for an introduction to this package:
-// http://golang.org/doc/articles/json_and_go.html
+// https://golang.org/doc/articles/json_and_go.html
 package json
 
 import (
index 23e71c7525a5c3b6dfef9536d4ccd880340a3270..85bb4ba83777a9e244af2366d5d1fb6b83ff75ea 100644 (file)
@@ -37,11 +37,11 @@ type miscPlaneTag struct {
 }
 
 type percentSlashTag struct {
-       V string `json:"text/html%"` // http://golang.org/issue/2718
+       V string `json:"text/html%"` // https://golang.org/issue/2718
 }
 
 type punctuationTag struct {
-       V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // http://golang.org/issue/3546
+       V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // https://golang.org/issue/3546
 }
 
 type emptyTag struct {
index ad9baa9527979d48c02d4ee88db5bfb47e0d02ed..a916ee04a8dc328d7e4306d637dc77e302c42838 100644 (file)
@@ -259,7 +259,7 @@ func (tv TypeAndValue) IsNil() bool {
 }
 
 // Addressable reports whether the corresponding expression
-// is addressable (http://golang.org/ref/spec#Address_operators).
+// is addressable (https://golang.org/ref/spec#Address_operators).
 func (tv TypeAndValue) Addressable() bool {
        return tv.mode == variable
 }
index 5de3bc0eefc22e51ffc8c6f16efadd5563e8051a..c89d22a6f90af3c2641aace53a30b199894228ed 100644 (file)
@@ -142,7 +142,7 @@ func TestTemplates(t *testing.T) {
        }
 }
 
-// This used to crash; http://golang.org/issue/3281
+// This used to crash; https://golang.org/issue/3281
 func TestCloneCrash(t *testing.T) {
        t1 := New("all")
        Must(t1.New("t1").Parse(`{{define "foo"}}foo{{end}}`))
index 3087c07ff5a210d4cf18b595e1f71f3bd28ea9fe..9419d5e72a757ac798bb51e68d23787d1acba5c9 100644 (file)
@@ -5,7 +5,7 @@
 // Package draw provides image composition functions.
 //
 // See "The Go image/draw package" for an introduction to this package:
-// http://golang.org/doc/articles/image_draw.html
+// https://golang.org/doc/articles/image_draw.html
 package draw
 
 import (
index a1da69780c9e2449789d4da018c22c0db8b051a3..6a133124ad5bcb522d2266d2dfb52851920a0540 100644 (file)
@@ -212,7 +212,7 @@ func (d *decoder) decode(r io.Reader, configOnly bool) error {
                        // io.ErrUnexpectedEOF (meaning that the encoded stream hit io.EOF
                        // before the LZW decoder saw an explict end code), provided that
                        // the io.ReadFull call above successfully read len(m.Pix) bytes.
-                       // See http://golang.org/issue/9856 for an example GIF.
+                       // See https://golang.org/issue/9856 for an example GIF.
                        if n, err := lzwr.Read(d.tmp[:1]); n != 0 || (err != io.EOF && err != io.ErrUnexpectedEOF) {
                                if err != nil {
                                        return err
index a5993d217a7cfc977f665b35e16be9f421d2f2dc..20b64d78e1aab97b858e522afacb0f34b2f7c3e5 100644 (file)
@@ -18,7 +18,7 @@
 // initialization side effects.
 //
 // See "The Go image package" for more details:
-// http://golang.org/doc/articles/image_package.html
+// https://golang.org/doc/articles/image_package.html
 package image
 
 import (
index 6286584e0cfe7813b937df5707fe66e0ec1dabdc..0037b4a64cc0ca00e6443a7072052f5329712e86 100644 (file)
@@ -2643,7 +2643,7 @@ func TestLargeTan(t *testing.T) {
 
 // Check that math constants are accepted by compiler
 // and have right value (assumes strconv.ParseFloat works).
-// http://golang.org/issue/201
+// https://golang.org/issue/201
 
 type floatTest struct {
        val  interface{}
index 28369bd0e6282023c448029eda8b8b8a0c6c36b7..88c8c2bb64167e749ef98422dd38f760010a30ba 100644 (file)
@@ -708,7 +708,7 @@ var primes = []string{
        "10953742525620032441",
        "17908251027575790097",
 
-       // http://golang.org/issue/638
+       // https://golang.org/issue/638
        "18699199384836356663",
 
        "98920366548084643601728869055592650835572950932266967461790948584315647051443",
index d730888490794587dc80fd5f8ac55d69dbf301a7..30452d1d458cd76885935d26866b132249461097 100644 (file)
@@ -351,7 +351,7 @@ func TestLineContinuation(t *testing.T) {
 }
 
 func TestQuotedPrintableEncoding(t *testing.T) {
-       // From http://golang.org/issue/4411
+       // From https://golang.org/issue/4411
        body := "--0016e68ee29c5d515f04cedf6733\r\nContent-Type: text/plain; charset=ISO-8859-1\r\nContent-Disposition: form-data; name=text\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\nwords words words words words words words words words words words words wor=\r\nds words words words words words words words words words words words words =\r\nwords words words words words words words words words words words words wor=\r\nds words words words words words words words words words words words words =\r\nwords words words words words words words words words\r\n--0016e68ee29c5d515f04cedf6733\r\nContent-Type: text/plain; charset=ISO-8859-1\r\nContent-Disposition: form-data; name=submit\r\n\r\nSubmit\r\n--0016e68ee29c5d515f04cedf6733--"
        r := NewReader(strings.NewReader(body), "0016e68ee29c5d515f04cedf6733")
        part, err := r.NextPart()
index f2d7b348bf0950bf43b44f42eb81b9d3324fdbe1..6463b0df435376afebbb4db3209e9451793940cf 100644 (file)
@@ -87,7 +87,7 @@ func (fd *netFD) connect(la, ra syscall.Sockaddr, deadline time.Time) error {
                // already been accepted and closed by the server.
                // Treat this as a successful connection--writes to
                // the socket will see EOF.  For details and a test
-               // case in C see http://golang.org/issue/6828.
+               // case in C see https://golang.org/issue/6828.
                if runtime.GOOS == "solaris" {
                        return nil
                }
index 02ac85a1d7e396cf0bdf2978b80d2ce322357ce4..7f2fbb4678ef1c32164620d459b0599680952d91 100644 (file)
@@ -423,7 +423,7 @@ func (c *Client) doFollowingRedirects(ireq *Request, shouldRedirect func(int) bo
        if redirectFailed {
                // Special case for Go 1 compatibility: return both the response
                // and an error if the CheckRedirect function failed.
-               // See http://golang.org/issue/3795
+               // See https://golang.org/issue/3795
                return resp, urlErr
        }
 
index 10829a77900c5b81f8ba26ad4ba1808f5e50798c..7b524d381bce9a5e2acc06b1f2cc1e437de26bb9 100644 (file)
@@ -258,7 +258,7 @@ func TestClientRedirects(t *testing.T) {
                t.Errorf("with redirects forbidden, expected a *url.Error with our 'no redirects allowed' error inside; got %#v (%q)", err, err)
        }
        if res == nil {
-               t.Fatalf("Expected a non-nil Response on CheckRedirect failure (http://golang.org/issue/3795)")
+               t.Fatalf("Expected a non-nil Response on CheckRedirect failure (https://golang.org/issue/3795)")
        }
        res.Body.Close()
        if res.Header.Get("Location") == "" {
@@ -739,7 +739,7 @@ func TestResponseSetsTLSConnectionState(t *testing.T) {
        }
 }
 
-// Verify Response.ContentLength is populated. http://golang.org/issue/4126
+// Verify Response.ContentLength is populated. https://golang.org/issue/4126
 func TestClientHeadContentLength(t *testing.T) {
        defer afterTest(t)
        ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
index cf7a3dbe5b3c257abb3cc1a7d54a82fc0e0e13a1..648709dd99780d37cae44b417fed9bc3983bdc50 100644 (file)
@@ -304,7 +304,7 @@ func sanitizeCookieName(n string) string {
 // We loosen this as spaces and commas are common in cookie values
 // but we produce a quoted cookie-value in when value starts or ends
 // with a comma or space.
-// See http://golang.org/issue/7243 for the discussion.
+// See https://golang.org/issue/7243 for the discussion.
 func sanitizeCookieValue(v string) string {
        v = sanitizeOrWarn("Cookie.Value", validCookieValueByte, v)
        if len(v) == 0 {
index 758f1849629946bc785759bc1a15ef3bef343d15..25947e6a8ab203ceb0c912969cc9c066cd0bbe05 100644 (file)
@@ -226,7 +226,7 @@ func TestReverseProxyFlushInterval(t *testing.T) {
 
 func TestReverseProxyCancellation(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/9554")
+               t.Skip("skipping test; see https://golang.org/issue/9554")
        }
        const backendResponse = "I am the backend"
 
index 6c3c65641d3aa59c1c7ad295cc86f8b6e63a4c62..b28e4063c4010ad9a72df39c6e94711f043c9d5d 100644 (file)
@@ -421,7 +421,7 @@ func TestServeMuxHandlerRedirects(t *testing.T) {
        }
 }
 
-// Tests for http://golang.org/issue/900
+// Tests for https://golang.org/issue/900
 func TestMuxRedirectLeadingSlashes(t *testing.T) {
        paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"}
        for _, path := range paths {
@@ -448,7 +448,7 @@ func TestMuxRedirectLeadingSlashes(t *testing.T) {
 
 func TestServerTimeouts(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        reqNum := 0
@@ -527,7 +527,7 @@ func TestServerTimeouts(t *testing.T) {
 // request) that will never happen.
 func TestOnlyWriteTimeout(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        var conn net.Conn
@@ -882,7 +882,7 @@ func TestHeadResponses(t *testing.T) {
 
 func TestTLSHandshakeTimeout(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {}))
@@ -1744,7 +1744,7 @@ func TestRequestBodyLimit(t *testing.T) {
 // side of their TCP connection, the server doesn't send a 400 Bad Request.
 func TestClientWriteShutdown(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {}))
@@ -1799,7 +1799,7 @@ func TestServerBufferedChunking(t *testing.T) {
 // Tests that the server flushes its response headers out when it's
 // ignoring the response body and waits a bit before forcefully
 // closing the TCP connection, causing the client to get a RST.
-// See http://golang.org/issue/3595
+// See https://golang.org/issue/3595
 func TestServerGracefulClose(t *testing.T) {
        defer afterTest(t)
        ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
@@ -2291,7 +2291,7 @@ func TestDoubleHijack(t *testing.T) {
        <-conn.closec
 }
 
-// http://golang.org/issue/5955
+// https://golang.org/issue/5955
 // Note that this does not test the "request too large"
 // exit path from the http server. This is intentional;
 // not sending Connection: close is just a minor wire
index bac3e0464737c873dff6304a5876e398333d4bfd..882c3521447fab467d225472e76a8367b035e6d2 100644 (file)
@@ -1183,7 +1183,7 @@ var _ closeWriter = (*net.TCPConn)(nil)
 // pause for a bit, hoping the client processes it before any
 // subsequent RST.
 //
-// See http://golang.org/issue/3595
+// See https://golang.org/issue/3595
 func (c *conn) closeWriteAndWait() {
        c.finalFlush()
        if tcp, ok := c.rwc.(closeWriter); ok {
index 8544fe378da494ceba81c09e2ec92ae200bb815b..41fc6d0e626634fd9b004f971f7bb1bddfb16f6a 100644 (file)
@@ -1134,11 +1134,11 @@ func (pc *persistConn) roundTrip(req *transportRequest) (resp *Response, err err
                // Note that we don't request this for HEAD requests,
                // due to a bug in nginx:
                //   http://trac.nginx.org/nginx/ticket/358
-               //   http://golang.org/issue/5522
+               //   https://golang.org/issue/5522
                //
                // We don't request gzip if the request is for a range, since
                // auto-decoding a portion of a gzipped document will just fail
-               // anyway. See http://golang.org/issue/8923
+               // anyway. See https://golang.org/issue/8923
                requestedGzip = true
                req.extraHeaders().Set("Accept-Encoding", "gzip")
        }
index 0eaf70da5d85cc79493f439655f99a67ff055618..d399552e4718d1e9999e7b7d86f103f14d9ff638 100644 (file)
@@ -486,7 +486,7 @@ func TestTransportServerClosingUnexpectedly(t *testing.T) {
        }
 }
 
-// Test for http://golang.org/issue/2616 (appropriate issue number)
+// Test for https://golang.org/issue/2616 (appropriate issue number)
 // This fails pretty reliably with GOMAXPROCS=100 or something high.
 func TestStressSurpriseServerCloses(t *testing.T) {
        defer afterTest(t)
@@ -876,7 +876,7 @@ func TestTransportGzipShort(t *testing.T) {
 // tests that persistent goroutine connections shut down when no longer desired.
 func TestTransportPersistConnLeak(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        gotReqCh := make(chan bool)
@@ -945,7 +945,7 @@ func TestTransportPersistConnLeak(t *testing.T) {
 // request.ContentLength is explicitly short
 func TestTransportPersistConnLeakShortBody(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
@@ -984,7 +984,7 @@ func TestTransportPersistConnLeakShortBody(t *testing.T) {
        }
 }
 
-// This used to crash; http://golang.org/issue/3266
+// This used to crash; https://golang.org/issue/3266
 func TestTransportIdleConnCrash(t *testing.T) {
        defer afterTest(t)
        tr := &Transport{}
@@ -1066,7 +1066,7 @@ func TestIssue3595(t *testing.T) {
        }
 }
 
-// From http://golang.org/issue/4454 ,
+// From https://golang.org/issue/4454 ,
 // "client fails to handle requests with no body and chunked encoding"
 func TestChunkedNoContent(t *testing.T) {
        defer afterTest(t)
@@ -1153,7 +1153,7 @@ func TestTransportConcurrency(t *testing.T) {
 
 func TestIssue4191_InfiniteGetTimeout(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        const debug = false
@@ -1217,7 +1217,7 @@ func TestIssue4191_InfiniteGetTimeout(t *testing.T) {
 
 func TestIssue4191_InfiniteGetToPutTimeout(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7237")
+               t.Skip("skipping test; see https://golang.org/issue/7237")
        }
        defer afterTest(t)
        const debug = false
@@ -1533,7 +1533,7 @@ func TestCancelRequestWithChannelBeforeDo(t *testing.T) {
        defer close(unblockc)
 
        // Don't interfere with the next test on plan9.
-       // Cf. http://golang.org/issues/11476
+       // Cf. https://golang.org/issues/11476
        if runtime.GOOS == "plan9" {
                defer time.Sleep(500 * time.Millisecond)
        }
@@ -2257,7 +2257,7 @@ func (f closerFunc) Close() error { return f() }
 // Issue 6981
 func TestTransportClosesBodyOnError(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/7782")
+               t.Skip("skipping test; see https://golang.org/issue/7782")
        }
        defer afterTest(t)
        readBody := make(chan error, 1)
index 5dd111b299ffa420b724a4ab4751f133a40f646b..ba11ff8586948316b53c181a6a99d88330239771 100644 (file)
@@ -54,7 +54,7 @@ func (s *S) Recv(nul *struct{}, reply *R) error {
 
 func TestGobError(t *testing.T) {
        if runtime.GOOS == "plan9" {
-               t.Skip("skipping test; see http://golang.org/issue/8908")
+               t.Skip("skipping test; see https://golang.org/issue/8908")
        }
        defer func() {
                err := recover()
index eff77639009b4db23268270c7dba97d5ea513b49..f3d5add6897947344e2ee8e700fef43794b1f253 100644 (file)
@@ -185,7 +185,7 @@ func dialTCP(net string, laddr, raddr *TCPAddr, deadline time.Time) (*TCPConn, e
        // see this happen, rather than expose the buggy effect to users, we
        // close the fd and try again.  If it happens twice more, we relent and
        // use the result.  See also:
-       //      http://golang.org/issue/2690
+       //      https://golang.org/issue/2690
        //      http://stackoverflow.com/questions/4949858/
        //
        // The opposite can also happen: if we ask the kernel to pick an appropriate
index c515bfc841bf04301badb835bcd30f81355ca524..a263795814f3d2c1dd618a592d31c06ff886767b 100644 (file)
@@ -84,7 +84,7 @@ type Cmd struct {
        // standard error. If non-nil, entry i becomes file descriptor 3+i.
        //
        // BUG(rsc): On OS X 10.6, child processes may sometimes inherit unwanted fds.
-       // http://golang.org/issue/2603
+       // https://golang.org/issue/2603
        ExtraFiles []*os.File
 
        // SysProcAttr holds optional, operating system-specific attributes.
index 3773963cb0dd3772fe1d11348870ee1de9de78b8..96d41cbc8ec70258a9b9df965caf9660ec68647c 100644 (file)
@@ -318,15 +318,15 @@ func closeUnexpectedFds(t *testing.T, m string) {
 }
 
 func TestExtraFilesFDShuffle(t *testing.T) {
-       t.Skip("flaky test; see http://golang.org/issue/5780")
+       t.Skip("flaky test; see https://golang.org/issue/5780")
        switch runtime.GOOS {
        case "darwin":
-               // TODO(cnicolaou): http://golang.org/issue/2603
+               // TODO(cnicolaou): https://golang.org/issue/2603
                // leads to leaked file descriptors in this test when it's
                // run from a builder.
                closeUnexpectedFds(t, "TestExtraFilesFDShuffle")
        case "netbsd":
-               // http://golang.org/issue/3955
+               // https://golang.org/issue/3955
                closeUnexpectedFds(t, "TestExtraFilesFDShuffle")
        case "windows":
                t.Skip("no operating system support; skipping")
@@ -652,21 +652,21 @@ func TestHelperProcess(*testing.T) {
                        // file descriptors...
                case "darwin":
                        // TODO(bradfitz): broken? Sometimes.
-                       // http://golang.org/issue/2603
+                       // https://golang.org/issue/2603
                        // Skip this additional part of the test for now.
                case "netbsd":
                        // TODO(jsing): This currently fails on NetBSD due to
                        // the cloned file descriptors that result from opening
                        // /dev/urandom.
-                       // http://golang.org/issue/3955
+                       // https://golang.org/issue/3955
                case "plan9":
                        // TODO(0intro): Determine why Plan 9 is leaking
                        // file descriptors.
-                       // http://golang.org/issue/7118
+                       // https://golang.org/issue/7118
                case "solaris":
                        // TODO(aram): This fails on Solaris because libc opens
                        // its own files, as it sees fit. Darwin does the same,
-                       // see: http://golang.org/issue/2603
+                       // see: https://golang.org/issue/2603
                default:
                        // Now verify that there are no other open fds.
                        var files []*os.File
index 640200e970e147cbcaa66d6fed13674a692192fd..635842693a991689b2a2f538041be7f5a63a2123 100644 (file)
@@ -1122,7 +1122,7 @@ func TestSeek(t *testing.T) {
                if off != tt.out || err != nil {
                        if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 {
                                // Reiserfs rejects the big seeks.
-                               // http://golang.org/issue/91
+                               // https://golang.org/issue/91
                                break
                        }
                        t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out)
index 91b6493c51b1423ad6654893a049972cf5e4ac89..1c32e27a5491b275dbbd5dea8f5f69de4bb3cc80 100644 (file)
@@ -1064,7 +1064,7 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) {
        }
 }
 
-func TestBug3486(t *testing.T) { // http://golang.org/issue/3486
+func TestBug3486(t *testing.T) { // https://golang.org/issue/3486
        if runtime.GOOS == "darwin" {
                switch runtime.GOARCH {
                case "arm", "arm64":
index f1543c403ada869cb9f941e0112678fb38dfc9ce..e0917369f393f37ae3eee550e10fdddc1f6b3975 100755 (executable)
@@ -4,7 +4,7 @@
 # license that can be found in the LICENSE file.
 
 # race.bash tests the standard library under the race detector.
-# http://golang.org/doc/articles/race_detector.html
+# https://golang.org/doc/articles/race_detector.html
 
 set -e
 
index 83e62839ba7ac0d584f4477766107e881966df8e..33db692878f8a79d0a2b85e7797e271d3c1c7b6b 100644 (file)
@@ -3,7 +3,7 @@
 :: license that can be found in the LICENSE file.
 
 :: race.bash tests the standard library under the race detector.
-:: http://golang.org/doc/articles/race_detector.html
+:: https://golang.org/doc/articles/race_detector.html
 
 @echo off
 
index 447180524815a18cf0bb8de5e1bbdd39f163cf04..032057d2a15413b501d5afbacf2c8a0817550c8b 100644 (file)
@@ -51,7 +51,7 @@ func MakeFunc(typ Type, fn func(args []Value) (results []Value)) Value {
 
        // Indirect Go func value (dummy) to obtain
        // actual code address. (A Go func value is a pointer
-       // to a C function pointer. http://golang.org/s/go11func.)
+       // to a C function pointer. https://golang.org/s/go11func.)
        dummy := makeFuncStub
        code := **(**uintptr)(unsafe.Pointer(&dummy))
 
@@ -99,7 +99,7 @@ func makeMethodValue(op string, v Value) Value {
 
        // Indirect Go func value (dummy) to obtain
        // actual code address. (A Go func value is a pointer
-       // to a C function pointer. http://golang.org/s/go11func.)
+       // to a C function pointer. https://golang.org/s/go11func.)
        dummy := methodValueCall
        code := **(**uintptr)(unsafe.Pointer(&dummy))
 
index bc1a1a09dc8390c74b4e1a88504a2feadcc08d79..f74aecfee93652e92f15ca0faeb96a6bba737f5f 100644 (file)
@@ -12,7 +12,7 @@
 // for that type.
 //
 // See "The Laws of Reflection" for an introduction to reflection in Go:
-// http://golang.org/doc/articles/laws_of_reflection.html
+// https://golang.org/doc/articles/laws_of_reflection.html
 package reflect
 
 import (
@@ -389,7 +389,7 @@ type Method struct {
        // method name.  It is empty for upper case (exported) method names.
        // The combination of PkgPath and Name uniquely identifies a method
        // in a method set.
-       // See http://golang.org/ref/spec#Uniqueness_of_identifiers
+       // See https://golang.org/ref/spec#Uniqueness_of_identifiers
        Name    string
        PkgPath string
 
@@ -737,7 +737,7 @@ type StructField struct {
        // Name is the field name.
        // PkgPath is the package path that qualifies a lower case (unexported)
        // field name.  It is empty for upper case (exported) field names.
-       // See http://golang.org/ref/spec#Uniqueness_of_identifiers
+       // See https://golang.org/ref/spec#Uniqueness_of_identifiers
        Name    string
        PkgPath string
 
@@ -1188,7 +1188,7 @@ func implements(T, V *rtype) bool {
 
 // directlyAssignable reports whether a value x of type V can be directly
 // assigned (using memmove) to a value of type T.
-// http://golang.org/doc/go_spec.html#Assignability
+// https://golang.org/doc/go_spec.html#Assignability
 // Ignoring the interface rules (implemented elsewhere)
 // and the ideal constant rules (no ideal constants at run time).
 func directlyAssignable(T, V *rtype) bool {
index 6c6576ab904044a238b4e432536f9728a3bd0f20..9ff95e6f4411eee7cf3e4a375faf2620676ef5bc 100644 (file)
@@ -273,7 +273,7 @@ import (
 func main() {
        // This test intends to test that sending SIGPROF to foreign threads
        // before we make any cgo call will not abort the whole process, so
-       // we cannot make any cgo call here. See http://golang.org/issue/9456.
+       // we cannot make any cgo call here. See https://golang.org/issue/9456.
        atomic.StoreInt32((*int32)(unsafe.Pointer(&C.spinlock)), 1)
        for atomic.LoadInt32((*int32)(unsafe.Pointer(&C.spinlock))) == 1 {
                runtime.Gosched()
index 4a77dcfcd689d40bbc6fddb1a67543e9bbabd4d9..41202f9e3b7fb2a7abb03aa6777ed3236cb16744 100644 (file)
@@ -155,5 +155,5 @@ func SetPanicOnFault(enabled bool) bool {
 
 // WriteHeapDump writes a description of the heap and the objects in
 // it to the given file descriptor.
-// The heap dump format is defined at http://golang.org/s/go13heapdump.
+// The heap dump format is defined at https://golang.org/s/go13heapdump.
 func WriteHeapDump(fd uintptr)
index 3882229370e479d34b339173a6b3f7766370668a..43bdec05c79300c65264eb7a70402c338b967769 100644 (file)
@@ -19,7 +19,7 @@ A collection is triggered when the ratio of freshly allocated data to live data
 remaining after the previous collection reaches this percentage. The default
 is GOGC=100. Setting GOGC=off disables the garbage collector entirely.
 The runtime/debug package's SetGCPercent function allows changing this
-percentage at run time. See http://golang.org/pkg/runtime/debug/#SetGCPercent.
+percentage at run time. See https://golang.org/pkg/runtime/debug/#SetGCPercent.
 
 The GODEBUG variable controls debugging variables within the runtime.
 It is a comma-separated list of name=val pairs setting these named variables:
@@ -99,7 +99,7 @@ core dump.
 
 The GOARCH, GOOS, GOPATH, and GOROOT environment variables complete
 the set of Go environment variables. They influence the building of Go programs
-(see http://golang.org/cmd/go and http://golang.org/pkg/go/build).
+(see https://golang.org/cmd/go and https://golang.org/pkg/go/build).
 GOARCH, GOOS, and GOROOT are recorded at compile time and made available by
 constants or functions in this package, but they do not influence the execution
 of the run-time system.
index c0fff3f1ced01c7b14b4d7df80cca4634301a461..492ea92e933c8e0a789aab503b3f2cc0cab9ee6e 100644 (file)
@@ -7,7 +7,7 @@
 // finalizers, etc.) to a file.
 
 // The format of the dumped file is described at
-// http://golang.org/s/go14heapdump.
+// https://golang.org/s/go14heapdump.
 
 package runtime
 
index f6608309e8f329fe2f82f46acf2d2f1ce81f7356..bea807caefe5a95844f03199f00cdca7e5a4209e 100644 (file)
@@ -152,7 +152,7 @@ const (
        // On Windows 64-bit we limit the arena to 32GB or 35 bits.
        // Windows counts memory used by page table into committed memory
        // of the process, so we can't reserve too much memory.
-       // See http://golang.org/issue/5402 and http://golang.org/issue/5236.
+       // See https://golang.org/issue/5402 and https://golang.org/issue/5236.
        // On other 64-bit platforms, we limit the arena to 512GB, or 39 bits.
        // On 32-bit, we don't bother limiting anything, so we use the full 32-bit address.
        // On Darwin/arm64, we cannot reserve more than ~5GB of virtual memory,
index 0f137856a378eb589dc772122c1ca33623f6905d..5b6765b66401b2c98e72d0dc03959a2be4962028 100644 (file)
@@ -293,7 +293,7 @@ const (
 // This algorithm optimizes for heap growth to match GOGC and for CPU
 // utilization between assist and background marking to be 25% of
 // GOMAXPROCS. The high-level design of this algorithm is documented
-// at http://golang.org/s/go15gcpacing.
+// at https://golang.org/s/go15gcpacing.
 var gcController = gcControllerState{
        // Initial trigger ratio guess.
        triggerRatio: 7 / 8.0,
index 4290edb7beeaaab3f062b6a98679028268cdb069..43fe6e85a169145910bff4f0b4a4d4f1dfb04a94 100644 (file)
@@ -21,7 +21,7 @@ import (
 )
 
 // BUG(rsc): Profiles are incomplete and inaccurate on NetBSD and OS X.
-// See http://golang.org/issue/6047 for details.
+// See https://golang.org/issue/6047 for details.
 
 // A Profile is a collection of stack traces showing the call sequences
 // that led to instances of a particular event, such as allocation.
index b2b745bcf630de46ea380fbd4e89619c59f1fa04..ec88516cc114b3b5fa47b71564b965e3f1f9335a 100644 (file)
@@ -20,7 +20,7 @@ import (
 func skipTraceTestsIfNeeded(t *testing.T) {
        switch runtime.GOOS {
        case "solaris":
-               t.Skip("skipping: solaris timer can go backwards (http://golang.org/issue/8976)")
+               t.Skip("skipping: solaris timer can go backwards (https://golang.org/issue/8976)")
        case "darwin":
                switch runtime.GOARCH {
                case "arm", "arm64":
@@ -32,7 +32,7 @@ func skipTraceTestsIfNeeded(t *testing.T) {
 
        switch runtime.GOARCH {
        case "arm":
-               t.Skip("skipping: arm tests fail with 'failed to parse trace' (http://golang.org/issue/9725)")
+               t.Skip("skipping: arm tests fail with 'failed to parse trace' (https://golang.org/issue/9725)")
        }
 }
 
index a048ded94cc82d69d519d9914ece9ba9c332f8f0..909f655eafa3b2b87be841122df4ab1f9f52a0c1 100644 (file)
@@ -21,7 +21,7 @@ var (
 //     M must have an associated P to execute Go code, however it can be
 //     blocked or in a syscall w/o an associated P.
 //
-// Design doc at http://golang.org/s/go11sched.
+// Design doc at https://golang.org/s/go11sched.
 
 const (
        // Number of goroutine ids to grab from sched.goidgen to local per-P cache at once.
index aef805dad71f81886505f3691728a480ae7330a7..9e93f6604218e31acfc4963dade26f9b11d47602 100644 (file)
@@ -5,5 +5,5 @@
 // Package race implements data race detection logic.
 // No public interface is provided.
 // For details about the race detector see
-// http://golang.org/doc/articles/race_detector.html
+// https://golang.org/doc/articles/race_detector.html
 package race
index 64b2d03a929d60c5e771d4c48c29d982babc9fb0..0132766dd0b754400665758963b415de9331f3b4 100644 (file)
@@ -496,7 +496,7 @@ const (
 )
 
 // Layout of in-memory per-function information prepared by linker
-// See http://golang.org/s/go12symtab.
+// See https://golang.org/s/go12symtab.
 // Keep in sync with linker
 // and with package debug/gosym and with symtab.go in package runtime.
 type _func struct {
index 48058b95cbe044477aa7bcb11f056598cf055496..fa073f19adb5f5e5a5f1fd1d80b82ba56ddedf37 100644 (file)
@@ -60,7 +60,7 @@ func TestStackMem(t *testing.T) {
        if consumed > estimate {
                t.Fatalf("Stack mem: want %v, got %v", estimate, consumed)
        }
-       // Due to broken stack memory accounting (http://golang.org/issue/7468),
+       // Due to broken stack memory accounting (https://golang.org/issue/7468),
        // StackInuse can decrease during function execution, so we cast the values to int64.
        inuse := int64(s1.StackInuse) - int64(s0.StackInuse)
        t.Logf("Inuse %vMB for stack mem", inuse>>20)
index 30ddbfb5a738eb9ba726dd17f71dec79acf17293..3f0771fe0cfa7855f6f596e5b4c7694ed91269e8 100644 (file)
@@ -45,7 +45,7 @@ func rewindmorestack(buf *gobuf) {
                // buf.pc, so that when we return we will execute
                // the jump instruction and carry on.  This means that
                // stack unwinding may not work entirely correctly
-               // (http://golang.org/issue/5723) but the user is
+               // (https://golang.org/issue/5723) but the user is
                // running under gdb anyhow.
                return
        }
index 7ba9e15ef793e0e9c710145a61073d59ff2b87ef..25fcfe13c2b222bba1682c0fe8b6589836cc503f 100644 (file)
@@ -8,7 +8,7 @@
 // changes of heap size, processor start/stop, etc and writes them to a buffer
 // in a compact form. A precise nanosecond-precision timestamp and a stack
 // trace is captured for most events.
-// See http://golang.org/s/go15trace for more info.
+// See https://golang.org/s/go15trace for more info.
 
 package runtime
 
index 6895458165c0c1916af0fc586a9f8c9023d5cf35..c7b4560b76bc5e8add239e8c8813168031805284 100644 (file)
@@ -217,7 +217,7 @@ func passFDChild() {
        defer os.Exit(0)
 
        // Look for our fd. It should be fd 3, but we work around an fd leak
-       // bug here (http://golang.org/issue/2603) to let it be elsewhere.
+       // bug here (https://golang.org/issue/2603) to let it be elsewhere.
        var uc *net.UnixConn
        for fd := uintptr(3); fd <= 10; fd++ {
                f := os.NewFile(fd, "unix-conn")
index fb22e3a5592d4b3bb52598ca72350da2eac0a4ab..8381917478db8a1e1f6197945c7fd1436e1f1f7b 100644 (file)
@@ -34,7 +34,7 @@
 // its -bench flag is provided. Benchmarks are run sequentially.
 //
 // For a description of the testing flags, see
-// http://golang.org/cmd/go/#hdr-Description_of_testing_flags.
+// https://golang.org/cmd/go/#hdr-Description_of_testing_flags.
 //
 // A sample benchmark function looks like this:
 //     func BenchmarkHello(b *testing.B) {
index 757474a30b93f39484fa5babc2d94067613b8d33..2d16ea59ae3a9230a60b13d68b71d833c539ecd1 100644 (file)
@@ -830,7 +830,7 @@ var parseDurationTests = []struct {
        {"39h9m14.425s", true, 39*Hour + 9*Minute + 14*Second + 425*Millisecond},
        // large value
        {"52763797000ns", true, 52763797000 * Nanosecond},
-       // more than 9 digits after decimal point, see http://golang.org/issue/6617
+       // more than 9 digits after decimal point, see https://golang.org/issue/6617
        {"0.3333333333333333333h", true, 20 * Minute},
        // 9007199254740993 = 1<<53+1 cannot be stored precisely in a float64
        {"9007199254740993ns", true, (1<<53 + 1) * Nanosecond},
index 2fb2d0664e8525383382258ad1f24654eb243bdd..785e1ec04d2fdc474cdc3e3422d8808b796aa945 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Test len constants and non-constants, http://golang.org/issue/3244.
+// Test len constants and non-constants, https://golang.org/issue/3244.
 
 package main
 
index 60b4d0d12c4f13ed95dda13a777335e807a626be..51e46cbb2fdb84e8025a53942fba73ef557f0963 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Test that len non-constants are not constants, http://golang.org/issue/3244.
+// Test that len non-constants are not constants, https://golang.org/issue/3244.
 
 package p
 
index 5f6824603146310c3db4c9240adf4957dede327f..f3c25e727f0db8ec2559b2d170840e117a31102d 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Used to crash the compiler.
-// http://golang.org/issue/88
+// https://golang.org/issue/88
 
 package main
 
index 0bfd678da7ac1293ba42446e966e6ede98844d77..b27cc7db1a91620bf6804de1d4d59fab6029a05a 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Used to crash the compiler.
-// http://golang.org/issue/158
+// https://golang.org/issue/158
 
 package main
 
index b2a1a70c98a4a23b9dbcd176d3fdce63cfd3f16d..470369a6a80f8d155660e56babd759c9455a7deb 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Used to be rejected
-// http://golang.org/issue/188
+// https://golang.org/issue/188
 
 package main
 
index bb741b930923631962b70bfdf875dbc1c4cbe91f..aafc260463bc4e8c24f39c77c657aae228eaac1e 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Used to crash
-// http://golang.org/issue/204
+// https://golang.org/issue/204
 
 package main
 
index db7abe292d3c7f1f934a772f58f1677fba30fcd7..f159f05fa8d447118a29ce72b04cec954ad1af0e 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Crashes 6g, 8g
-// http://golang.org/issue/238
+// https://golang.org/issue/238
 
 package main
 
index bc5a1fa6a0f0920c52e90c3d459b7c28de5423f8..4275474a972a1684c1c33c83b19c8af822d51fe3 100644 (file)
@@ -7,7 +7,7 @@
 // function call arg reordering was picking out 1 call that
 // didn't need to be in a temporary, but it was picking
 // out the first call instead of the last call.
-// http://golang.org/issue/370
+// https://golang.org/issue/370
 
 package main
 
index 9d7397c9374006119fa4d13d1b6a998f0190b98d..2f320def263d4012d84302e15be12ba4072907b9 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Test case for http://golang.org/issue/692
+// Test case for https://golang.org/issue/692
 
 package main
 
index e5cad584aa0d407e91411c7324baf0fafb512604..5e0516691a0f35c50aced22371d962b44b8d0776 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Test case for http://golang.org/issue/700
+// Test case for https://golang.org/issue/700
 
 package main
 
index d39f0d45e5ba63b38c2f686fc94ad063ede94954..60ee7ee3f3f66d67fe33e4fffefa681472f2c67b 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/749
+// https://golang.org/issue/749
 
 package main
 
index 47d267d63d325adf96d355810a0875d390886650..30d9bb1cc7bb44fdb275adffd7857f710855fcff 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/662
+// https://golang.org/issue/662
 
 package main
 
index 68840c538a6ecc1726e0816931657011082b068d..f943d68a07ee4ad875ef501e22964f3fdd0f518e 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/589
+// https://golang.org/issue/589
 
 package main
 
index fc9c19a172a45c80c55afcc191fa739d2dc82a83..b4e3f65cb8b6a8213ce86733575c926a1b6b211b 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/589
+// https://golang.org/issue/589
 
 package main
 
index 832ebe3e8de28db685f92c1c79ba09d63723c07d..e57d147a608beac8d4a242cb6689290da5b2ddd3 100644 (file)
@@ -13,7 +13,7 @@
 // Both gccgo and gofmt correctly refuse this program as is and accept it
 // when the semicolons are present.
 
-// This is a test case for issue 777 ( http://golang.org/issue/777 ).
+// This is a test case for issue 777 ( https://golang.org/issue/777 ).
 
 package main
 
index 3921e84057711d78f7137da4b4e919cf8448df87..726ba603eee17a7d1b9e1dc0660ac6df82c887ed 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/799
+// https://golang.org/issue/799
 
 package main
 
index 15d0bc55bfd096da5d50931ff593347eaf973a9e..3925b9a4b551bf059de677bee07020ca27ccaaed 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/808
+// https://golang.org/issue/808
 
 package main
 
index a47f8f7b54d1fcf3d7f518a992d51b035f8627fd..92c8d860e3fd0210450bc759d476d9546754ba49 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/807
+// https://golang.org/issue/807
 
 package main
 
index f8d2d924812253fb46eec5818f9e09e0b63f7f44..1f7f6e04104c7c14af04fae2bef1e804766e8901 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/806
+// https://golang.org/issue/806
 // triggered out of registers on 8g
 
 package bug283
index 0a8a0f09e60deb9c2a1b79e6b32f774d5b76406e..e0b3766bb363fd6f21698f0645aa27f7ca639497 100644 (file)
@@ -6,7 +6,7 @@
 
 // Test for issue 778: Map key values that are assignment
 // compatible with the map key type must be accepted according
-// to the spec: http://golang.org/doc/go_spec.html#Indexes .
+// to the spec: https://golang.org/doc/go_spec.html#Indexes .
 
 package main
 
index b2eab2e5de69b660d8796fd9624fb8f92476deea..46ebc1ff005df1f7947b9abc454c39e13fa5c7d4 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/920
+// https://golang.org/issue/920
 
 package main
 
index 19b9ece899452c27fd38d8ba4f8c72eece11064b..d627a9df671881175a66fb9acf6aca15d8324bf6 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/915
+// https://golang.org/issue/915
 
 package main
 
index 8d46bcf3175d5cd48058e55d9c2b87f8d4499c2d..0c2491257221ced7f4324164b932182cc98be5ca 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/843
+// https://golang.org/issue/843
 
 package main
 
index 0190c6a5f43140a02ec833ed16569f116ffef440..c985305668db7eb83b265954daba7f4414dac1b3 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/846
+// https://golang.org/issue/846
 
 package main
 
index 622f2bf08d31b674a862e3e8bf8053a3fc9550ea..ec41fe8d3cef28bc7c4c9ad2e6f0637e333b08bc 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/800
+// https://golang.org/issue/800
 
 package main
 
index fadc80bd790690b9e152b76fcc1627786020dea2..fc5250393281ea0beef3984efa8cbf641f61928b 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/990
+// https://golang.org/issue/990
 
 package main
 
index 36a5eee583804847011b0c450837ece56fe43177..c3035f6a915911840fdb9b4a7bf08ae15ca2e7da 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/3119
+// https://golang.org/issue/3119
 
 package main
 
index 8488d1876b29919fb5e9d51d9ad7065f8cd28096..c13bb815ca402ed0f063e033cf23b68c242eea55 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// http://golang.org/issue/3351
+// https://golang.org/issue/3351
 
 package main
 
index 8fcbd3cf2f739697643d788475ba403a522448cc..04d31f71adf691f42a99ce92bac866f86f155ae7 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Test that fields hide promoted methods.
-// http://golang.org/issue/4365
+// https://golang.org/issue/4365
 
 package main