all: link to https instead of http

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>
This commit is contained in:
Brad Fitzpatrick 2015-07-10 17:17:11 -06:00
parent f96fa06d14
commit 2ae77376f7
107 changed files with 141 additions and 141 deletions

View 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 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, installation also includes a version of the <code>go</code> command,
which may be used to build Go programs as described at 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>
<p> <p>

View File

@ -38,7 +38,7 @@ number of cores available; in prior releases it defaulted to 1.
</li> </li>
<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. is now provided for all repositories, not just the Go core.
</li> </li>

View File

@ -4,7 +4,7 @@
// Test that the #cgo CFLAGS directive works, // Test that the #cgo CFLAGS directive works,
// with and without platform filters. // with and without platform filters.
// See http://golang.org/issue/5224 for details. // See https://golang.org/issue/5224 for details.
package cgotest package cgotest
/* /*

View File

@ -5,7 +5,7 @@
package cgotest package cgotest
// Test that cgo reserves enough stack space during cgo call. // 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> // #include <stdio.h>
// //

View File

@ -4,7 +4,7 @@
// Test that pthread_cancel works as expected // Test that pthread_cancel works as expected
// (NPTL uses SIGRTMIN to implement thread cancellation) // (NPTL uses SIGRTMIN to implement thread cancellation)
// See http://golang.org/issue/6997 // See https://golang.org/issue/6997
package cgotest package cgotest
/* /*

View File

@ -7,7 +7,7 @@ package cgotest
import "testing" import "testing"
// This test actually doesn't have anything to do with cgo. It is a // 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 // handling string constants when using -linkmode=external. The test
// is in this directory because we routinely test -linkmode=external // is in this directory because we routinely test -linkmode=external
// here. // here.

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Test that setgid does not hang on GNU/Linux. // 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 package cgotest

View File

@ -23,7 +23,7 @@ function urlForInput(t) {
} }
if (gerritChangeIdRE.test(t)) { if (gerritChangeIdRE.test(t)) {
return "http://golang.org/cl/" + t; return "https://golang.org/cl/" + t;
} }
var match = commitRE.exec(t); var match = commitRE.exec(t);
@ -34,7 +34,7 @@ function urlForInput(t) {
if (pkgRE.test(t)) { if (pkgRE.test(t)) {
// TODO: make this smarter, using a list of packages + substring matches. // TODO: make this smarter, using a list of packages + substring matches.
// Get the list from godoc itself in JSON format? // Get the list from godoc itself in JSON format?
return "http://golang.org/pkg/" + t; return "https://golang.org/pkg/" + t;
} }
return null; return null;

View File

@ -51,7 +51,7 @@ var (
uploadURL = flag.String("upload_url", defaultUploadURL, "Upload URL") uploadURL = flag.String("upload_url", defaultUploadURL, "Upload URL")
defaultCacheFile = filepath.Join(os.Getenv("HOME"), ".makerelease-request-token") defaultCacheFile = filepath.Join(os.Getenv("HOME"), ".makerelease-request-token")
defaultUploadURL = "http://golang.org/dl/upload" defaultUploadURL = "https://golang.org/dl/upload"
) )
const ( const (

View File

@ -22,7 +22,7 @@
Language="1033" Language="1033"
Codepage="1252" Codepage="1252"
Version="$(var.WixGoVersion)" Version="$(var.WixGoVersion)"
Manufacturer="http://golang.org" Manufacturer="https://golang.org"
UpgradeCode="$(var.UpgradeCode)" > UpgradeCode="$(var.UpgradeCode)" >
<Package <Package

View File

@ -11,7 +11,7 @@ Go 1.3 supports three architectures
limited to a 4gb window. limited to a 4gb window.
* nacl/arm which is 32-bit ARMv7A architecture with 1GB address space. * 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 Prerequisites
------------- -------------

Binary file not shown.

Binary file not shown.

View File

@ -115,7 +115,7 @@ func TestCompareAPI(t *testing.T) {
out: "", out: "",
}, },
{ {
// http://golang.org/issue/4303 // https://golang.org/issue/4303
name: "contexts reconverging", name: "contexts reconverging",
required: []string{ required: []string{
"A", "A",

View 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 See $GOROOT/misc/cgo/stdio and $GOROOT/misc/cgo/gmp for examples. See
"C? Go? Cgo!" for an introduction to using cgo: "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 CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS may be defined with pseudo #cgo
directives within these comments to tweak the behavior of the C or C++ directives within these comments to tweak the behavior of the C or C++
compiler. Values defined in multiple directives are concatenated compiler. Values defined in multiple directives are concatenated
together. The directive can include a list of build constraints limiting its together. The directive can include a list of build constraints limiting its
effect to systems satisfying one of the constraints 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: For example:
// #cgo CFLAGS: -DPNG_DEBUG=1 // #cgo CFLAGS: -DPNG_DEBUG=1

View File

@ -781,7 +781,7 @@ func (p *Package) gccCmd() []string {
// incorrectly typed unsigned long. We work around that // incorrectly typed unsigned long. We work around that
// by disabling the builtin functions (this is safe as // by disabling the builtin functions (this is safe as
// it won't affect the actual compilation of the C code). // 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", "-fno-builtin",
) )
} }

View 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, // used to match gc's struct layout. For example, on 386 Windows,
// gcc wants to 8-align int64s, but gc does not. // gcc wants to 8-align int64s, but gc does not.
// Use __gcc_struct__ to work around http://gcc.gnu.org/PR52991 on x86, // 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 { func (p *Package) packedAttribute() string {
s := "__attribute__((__packed__" s := "__attribute__((__packed__"
if !p.GccIsClang && (goarch == "amd64" || goarch == "386") { if !p.GccIsClang && (goarch == "amd64" || goarch == "386") {

View File

@ -693,7 +693,7 @@ var primes = []string{
"10953742525620032441", "10953742525620032441",
"17908251027575790097", "17908251027575790097",
// http://golang.org/issue/638 // https://golang.org/issue/638
"18699199384836356663", "18699199384836356663",
"98920366548084643601728869055592650835572950932266967461790948584315647051443", "98920366548084643601728869055592650835572950932266967461790948584315647051443",

View File

@ -1012,7 +1012,7 @@ func cmdbootstrap() {
"*** %s still exists. ***\n"+ "*** %s still exists. ***\n"+
"It probably contains stale files that may confuse the build.\n"+ "It probably contains stale files that may confuse the build.\n"+
"Please (check what's there and) remove it and try again.\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)) pathf("%s/src/pkg", goroot))
} }

View File

@ -1433,7 +1433,7 @@ func (b *builder) build(a *action) (err error) {
// NOTE(rsc): On Windows, it is critically important that the // NOTE(rsc): On Windows, it is critically important that the
// gcc-compiled objects (cgoObjects) be listed after the ordinary // gcc-compiled objects (cgoObjects) be listed after the ordinary
// objects in the archive. I do not know why this is. // 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...) objects = append(objects, cgoObjects...)
// Add system object files. // 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 // Sleeping when we observe the race seems to be the most reliable
// option we have. // 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") { if err != nil && nbusy < 3 && strings.Contains(err.Error(), "text file busy") {
time.Sleep(100 * time.Millisecond << uint(nbusy)) 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 // 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. // 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" { if goos == "darwin" {
a = append(a, "-fno-common") 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 // NOTE(rsc): The importObj is a 5c/6c/8c object and on Windows
// must be processed before the gcc-generated objects. // 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) outObj = stringList(nonGccObjs, ofile)
return outGo, outObj, nil return outGo, outObj, nil

View File

@ -317,7 +317,7 @@ func (v *vcsCmd) run1(dir string, cmdline string, keyval []string, verbose bool)
_, err := exec.LookPath(v.cmd) _, err := exec.LookPath(v.cmd)
if err != nil { if err != nil {
fmt.Fprintf(os.Stderr, 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) v.name)
return nil, err return nil, err
} }

View File

@ -487,7 +487,7 @@ func relocsym(s *LSym) {
// On amd64, 4-byte offsets will be sign-extended, so it is impossible to // 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 // 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 // Instead of special casing only amd64, we treat this as an error on all
// 64-bit architectures so as to be future-proof. // 64-bit architectures so as to be future-proof.
if int32(o) < 0 && Thearch.Ptrsize > 4 && siz == 4 { if int32(o) < 0 && Thearch.Ptrsize > 4 && siz == 4 {

View File

@ -1668,7 +1668,7 @@ func doelf() {
// generate .tbss section (except for OpenBSD where it's not supported) // generate .tbss section (except for OpenBSD where it's not supported)
// for dynamic internal linker or external linking, so that various // for dynamic internal linker or external linking, so that various
// binutils could correctly calculate PT_TLS size. // binutils could correctly calculate PT_TLS size.
// see http://golang.org/issue/5200. // see https://golang.org/issue/5200.
if HEADTYPE != obj.Hopenbsd { if HEADTYPE != obj.Hopenbsd {
if Debug['d'] == 0 || Linkmode == LinkExternal { if Debug['d'] == 0 || Linkmode == LinkExternal {
Addstring(shstrtab, ".tbss") Addstring(shstrtab, ".tbss")

View File

@ -645,7 +645,7 @@ func machogenasmsym(put func(*LSym, string, int, int64, int64, int, *LSym)) {
func machosymorder() { func machosymorder() {
// On Mac OS X Mountain Lion, we must sort exported symbols // On Mac OS X Mountain Lion, we must sort exported symbols
// So we sort them here and pre-allocate dynid for them // 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++ { for i := 0; i < len(dynexp); i++ {
dynexp[i].Reachable = true dynexp[i].Reachable = true
} }

View File

@ -22,7 +22,7 @@ var zerofunc goobj.Func
// information during garbage collection. The symbol created is named // information during garbage collection. The symbol created is named
// "pclntab" for historical reasons; the scope of the table has grown to // "pclntab" for historical reasons; the scope of the table has grown to
// include more than just PC/line number correspondences. // 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() { func (p *Prog) pclntab() {
// Count number of functions going into the binary, // Count number of functions going into the binary,
// so that we can size the initial index correctly. // so that we can size the initial index correctly.

View 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 package main

View 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) { func TestRegression2508(t *testing.T) {
if testing.Short() { if testing.Short() {
t.Logf("test disabled with -short") t.Logf("test disabled with -short")

View File

@ -10,7 +10,7 @@ import (
"testing" "testing"
) )
// http://golang.org/issue/6849. // https://golang.org/issue/6849.
func TestPrimeSmall(t *testing.T) { func TestPrimeSmall(t *testing.T) {
for n := 2; n < 10; n++ { for n := 2; n < 10; n++ {
p, err := rand.Prime(rand.Reader, n) p, err := rand.Prime(rand.Reader, n)

View File

@ -923,7 +923,7 @@ func (c *Conn) Read(b []byte) (n int, err error) {
// tried to reuse the HTTP connection for a new // tried to reuse the HTTP connection for a new
// request. // request.
// See https://codereview.appspot.com/76400046 // See https://codereview.appspot.com/76400046
// and http://golang.org/issue/3514 // and https://golang.org/issue/3514
if ri := c.rawInput; ri != nil && if ri := c.rawInput; ri != nil &&
n != 0 && err == nil && n != 0 && err == nil &&
c.input == nil && len(ri.data) > 0 && recordType(ri.data[0]) == recordTypeAlert { c.input == nil && len(ri.data) > 0 && recordType(ri.data[0]) == recordTypeAlert {

View File

@ -40,7 +40,7 @@ D2lWusoe2/nEqfDVVWGWlyJ7yOmqaVm/iNUN9B2N2g==
` `
// keyPEM is the same as rsaKeyPEM, but declares itself as just // 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----- var keyPEM = `-----BEGIN PRIVATE KEY-----
MIIBOwIBAAJBANLJhPHhITqQbPklG3ibCVxwGMRfp/v4XqhfdQHdcVfHap6NQ5Wo MIIBOwIBAAJBANLJhPHhITqQbPklG3ibCVxwGMRfp/v4XqhfdQHdcVfHap6NQ5Wo
k/4xIA+ui35/MmNartNuC+BdZ1tMuVCPFZcCAwEAAQJAEJ2N+zsR0Xn8/Q6twa4G k/4xIA+ui35/MmNartNuC+BdZ1tMuVCPFZcCAwEAAQJAEJ2N+zsR0Xn8/Q6twa4G

View File

@ -6,10 +6,10 @@
// databases. // databases.
// //
// The sql package must be used in conjunction with a database driver. // 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 // For more usage examples, see the wiki page at
// http://golang.org/s/sqlwiki. // https://golang.org/s/sqlwiki.
package sql package sql
import ( import (
@ -454,7 +454,7 @@ var connectionRequestQueueSize = 1000000
// //
// Most users will open a database via a driver-specific connection // Most users will open a database via a driver-specific connection
// helper function that returns a *DB. No database drivers are included // 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. // a list of third-party drivers.
// //
// Open may just validate its arguments without creating a connection // Open may just validate its arguments without creating a connection

View 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. // 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 // It was failing, and now not, in github.com/bradfitz/go-sql-test
func TestTxQuery(t *testing.T) { func TestTxQuery(t *testing.T) {

View File

@ -7,7 +7,7 @@
// in the documentation for the Marshal and Unmarshal functions. // in the documentation for the Marshal and Unmarshal functions.
// //
// See "JSON and Go" for an introduction to this package: // 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 package json
import ( import (

View File

@ -37,11 +37,11 @@ type miscPlaneTag struct {
} }
type percentSlashTag 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 { type punctuationTag struct {
V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // http://golang.org/issue/3546 V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // https://golang.org/issue/3546
} }
type emptyTag struct { type emptyTag struct {

View File

@ -259,7 +259,7 @@ func (tv TypeAndValue) IsNil() bool {
} }
// Addressable reports whether the corresponding expression // 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 { func (tv TypeAndValue) Addressable() bool {
return tv.mode == variable return tv.mode == variable
} }

View 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) { func TestCloneCrash(t *testing.T) {
t1 := New("all") t1 := New("all")
Must(t1.New("t1").Parse(`{{define "foo"}}foo{{end}}`)) Must(t1.New("t1").Parse(`{{define "foo"}}foo{{end}}`))

View File

@ -5,7 +5,7 @@
// Package draw provides image composition functions. // Package draw provides image composition functions.
// //
// See "The Go image/draw package" for an introduction to this package: // 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 package draw
import ( import (

View 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 // io.ErrUnexpectedEOF (meaning that the encoded stream hit io.EOF
// before the LZW decoder saw an explict end code), provided that // before the LZW decoder saw an explict end code), provided that
// the io.ReadFull call above successfully read len(m.Pix) bytes. // 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 n, err := lzwr.Read(d.tmp[:1]); n != 0 || (err != io.EOF && err != io.ErrUnexpectedEOF) {
if err != nil { if err != nil {
return err return err

View File

@ -18,7 +18,7 @@
// initialization side effects. // initialization side effects.
// //
// See "The Go image package" for more details: // 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 package image
import ( import (

View File

@ -2643,7 +2643,7 @@ func TestLargeTan(t *testing.T) {
// Check that math constants are accepted by compiler // Check that math constants are accepted by compiler
// and have right value (assumes strconv.ParseFloat works). // and have right value (assumes strconv.ParseFloat works).
// http://golang.org/issue/201 // https://golang.org/issue/201
type floatTest struct { type floatTest struct {
val interface{} val interface{}

View File

@ -708,7 +708,7 @@ var primes = []string{
"10953742525620032441", "10953742525620032441",
"17908251027575790097", "17908251027575790097",
// http://golang.org/issue/638 // https://golang.org/issue/638
"18699199384836356663", "18699199384836356663",
"98920366548084643601728869055592650835572950932266967461790948584315647051443", "98920366548084643601728869055592650835572950932266967461790948584315647051443",

View File

@ -351,7 +351,7 @@ func TestLineContinuation(t *testing.T) {
} }
func TestQuotedPrintableEncoding(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--" 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") r := NewReader(strings.NewReader(body), "0016e68ee29c5d515f04cedf6733")
part, err := r.NextPart() part, err := r.NextPart()

View 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. // already been accepted and closed by the server.
// Treat this as a successful connection--writes to // Treat this as a successful connection--writes to
// the socket will see EOF. For details and a test // 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" { if runtime.GOOS == "solaris" {
return nil return nil
} }

View File

@ -423,7 +423,7 @@ func (c *Client) doFollowingRedirects(ireq *Request, shouldRedirect func(int) bo
if redirectFailed { if redirectFailed {
// Special case for Go 1 compatibility: return both the response // Special case for Go 1 compatibility: return both the response
// and an error if the CheckRedirect function failed. // and an error if the CheckRedirect function failed.
// See http://golang.org/issue/3795 // See https://golang.org/issue/3795
return resp, urlErr return resp, urlErr
} }

View 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) t.Errorf("with redirects forbidden, expected a *url.Error with our 'no redirects allowed' error inside; got %#v (%q)", err, err)
} }
if res == nil { 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() res.Body.Close()
if res.Header.Get("Location") == "" { 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) { func TestClientHeadContentLength(t *testing.T) {
defer afterTest(t) defer afterTest(t)
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {

View File

@ -304,7 +304,7 @@ func sanitizeCookieName(n string) string {
// We loosen this as spaces and commas are common in cookie values // 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 // but we produce a quoted cookie-value in when value starts or ends
// with a comma or space. // 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 { func sanitizeCookieValue(v string) string {
v = sanitizeOrWarn("Cookie.Value", validCookieValueByte, v) v = sanitizeOrWarn("Cookie.Value", validCookieValueByte, v)
if len(v) == 0 { if len(v) == 0 {

View File

@ -226,7 +226,7 @@ func TestReverseProxyFlushInterval(t *testing.T) {
func TestReverseProxyCancellation(t *testing.T) { func TestReverseProxyCancellation(t *testing.T) {
if runtime.GOOS == "plan9" { 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" const backendResponse = "I am the backend"

View 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) { func TestMuxRedirectLeadingSlashes(t *testing.T) {
paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"} paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"}
for _, path := range paths { for _, path := range paths {
@ -448,7 +448,7 @@ func TestMuxRedirectLeadingSlashes(t *testing.T) {
func TestServerTimeouts(t *testing.T) { func TestServerTimeouts(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
reqNum := 0 reqNum := 0
@ -527,7 +527,7 @@ func TestServerTimeouts(t *testing.T) {
// request) that will never happen. // request) that will never happen.
func TestOnlyWriteTimeout(t *testing.T) { func TestOnlyWriteTimeout(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
var conn net.Conn var conn net.Conn
@ -882,7 +882,7 @@ func TestHeadResponses(t *testing.T) {
func TestTLSHandshakeTimeout(t *testing.T) { func TestTLSHandshakeTimeout(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {})) 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. // side of their TCP connection, the server doesn't send a 400 Bad Request.
func TestClientWriteShutdown(t *testing.T) { func TestClientWriteShutdown(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {})) 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 // Tests that the server flushes its response headers out when it's
// ignoring the response body and waits a bit before forcefully // ignoring the response body and waits a bit before forcefully
// closing the TCP connection, causing the client to get a RST. // 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) { func TestServerGracefulClose(t *testing.T) {
defer afterTest(t) defer afterTest(t)
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
@ -2291,7 +2291,7 @@ func TestDoubleHijack(t *testing.T) {
<-conn.closec <-conn.closec
} }
// http://golang.org/issue/5955 // https://golang.org/issue/5955
// Note that this does not test the "request too large" // Note that this does not test the "request too large"
// exit path from the http server. This is intentional; // exit path from the http server. This is intentional;
// not sending Connection: close is just a minor wire // not sending Connection: close is just a minor wire

View File

@ -1183,7 +1183,7 @@ var _ closeWriter = (*net.TCPConn)(nil)
// pause for a bit, hoping the client processes it before any // pause for a bit, hoping the client processes it before any
// subsequent RST. // subsequent RST.
// //
// See http://golang.org/issue/3595 // See https://golang.org/issue/3595
func (c *conn) closeWriteAndWait() { func (c *conn) closeWriteAndWait() {
c.finalFlush() c.finalFlush()
if tcp, ok := c.rwc.(closeWriter); ok { if tcp, ok := c.rwc.(closeWriter); ok {

View 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, // Note that we don't request this for HEAD requests,
// due to a bug in nginx: // due to a bug in nginx:
// http://trac.nginx.org/nginx/ticket/358 // 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 // We don't request gzip if the request is for a range, since
// auto-decoding a portion of a gzipped document will just fail // 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 requestedGzip = true
req.extraHeaders().Set("Accept-Encoding", "gzip") req.extraHeaders().Set("Accept-Encoding", "gzip")
} }

View 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. // This fails pretty reliably with GOMAXPROCS=100 or something high.
func TestStressSurpriseServerCloses(t *testing.T) { func TestStressSurpriseServerCloses(t *testing.T) {
defer afterTest(t) defer afterTest(t)
@ -876,7 +876,7 @@ func TestTransportGzipShort(t *testing.T) {
// tests that persistent goroutine connections shut down when no longer desired. // tests that persistent goroutine connections shut down when no longer desired.
func TestTransportPersistConnLeak(t *testing.T) { func TestTransportPersistConnLeak(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
gotReqCh := make(chan bool) gotReqCh := make(chan bool)
@ -945,7 +945,7 @@ func TestTransportPersistConnLeak(t *testing.T) {
// request.ContentLength is explicitly short // request.ContentLength is explicitly short
func TestTransportPersistConnLeakShortBody(t *testing.T) { func TestTransportPersistConnLeakShortBody(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { 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) { func TestTransportIdleConnCrash(t *testing.T) {
defer afterTest(t) defer afterTest(t)
tr := &Transport{} 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" // "client fails to handle requests with no body and chunked encoding"
func TestChunkedNoContent(t *testing.T) { func TestChunkedNoContent(t *testing.T) {
defer afterTest(t) defer afterTest(t)
@ -1153,7 +1153,7 @@ func TestTransportConcurrency(t *testing.T) {
func TestIssue4191_InfiniteGetTimeout(t *testing.T) { func TestIssue4191_InfiniteGetTimeout(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
const debug = false const debug = false
@ -1217,7 +1217,7 @@ func TestIssue4191_InfiniteGetTimeout(t *testing.T) {
func TestIssue4191_InfiniteGetToPutTimeout(t *testing.T) { func TestIssue4191_InfiniteGetToPutTimeout(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
const debug = false const debug = false
@ -1533,7 +1533,7 @@ func TestCancelRequestWithChannelBeforeDo(t *testing.T) {
defer close(unblockc) defer close(unblockc)
// Don't interfere with the next test on plan9. // 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" { if runtime.GOOS == "plan9" {
defer time.Sleep(500 * time.Millisecond) defer time.Sleep(500 * time.Millisecond)
} }
@ -2257,7 +2257,7 @@ func (f closerFunc) Close() error { return f() }
// Issue 6981 // Issue 6981
func TestTransportClosesBodyOnError(t *testing.T) { func TestTransportClosesBodyOnError(t *testing.T) {
if runtime.GOOS == "plan9" { 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) defer afterTest(t)
readBody := make(chan error, 1) readBody := make(chan error, 1)

View File

@ -54,7 +54,7 @@ func (s *S) Recv(nul *struct{}, reply *R) error {
func TestGobError(t *testing.T) { func TestGobError(t *testing.T) {
if runtime.GOOS == "plan9" { 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() { defer func() {
err := recover() err := recover()

View 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 // 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 // close the fd and try again. If it happens twice more, we relent and
// use the result. See also: // use the result. See also:
// http://golang.org/issue/2690 // https://golang.org/issue/2690
// http://stackoverflow.com/questions/4949858/ // http://stackoverflow.com/questions/4949858/
// //
// The opposite can also happen: if we ask the kernel to pick an appropriate // The opposite can also happen: if we ask the kernel to pick an appropriate

View File

@ -84,7 +84,7 @@ type Cmd struct {
// standard error. If non-nil, entry i becomes file descriptor 3+i. // 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. // 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 ExtraFiles []*os.File
// SysProcAttr holds optional, operating system-specific attributes. // SysProcAttr holds optional, operating system-specific attributes.

View File

@ -318,15 +318,15 @@ func closeUnexpectedFds(t *testing.T, m string) {
} }
func TestExtraFilesFDShuffle(t *testing.T) { 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 { switch runtime.GOOS {
case "darwin": 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 // leads to leaked file descriptors in this test when it's
// run from a builder. // run from a builder.
closeUnexpectedFds(t, "TestExtraFilesFDShuffle") closeUnexpectedFds(t, "TestExtraFilesFDShuffle")
case "netbsd": case "netbsd":
// http://golang.org/issue/3955 // https://golang.org/issue/3955
closeUnexpectedFds(t, "TestExtraFilesFDShuffle") closeUnexpectedFds(t, "TestExtraFilesFDShuffle")
case "windows": case "windows":
t.Skip("no operating system support; skipping") t.Skip("no operating system support; skipping")
@ -652,21 +652,21 @@ func TestHelperProcess(*testing.T) {
// file descriptors... // file descriptors...
case "darwin": case "darwin":
// TODO(bradfitz): broken? Sometimes. // TODO(bradfitz): broken? Sometimes.
// http://golang.org/issue/2603 // https://golang.org/issue/2603
// Skip this additional part of the test for now. // Skip this additional part of the test for now.
case "netbsd": case "netbsd":
// TODO(jsing): This currently fails on NetBSD due to // TODO(jsing): This currently fails on NetBSD due to
// the cloned file descriptors that result from opening // the cloned file descriptors that result from opening
// /dev/urandom. // /dev/urandom.
// http://golang.org/issue/3955 // https://golang.org/issue/3955
case "plan9": case "plan9":
// TODO(0intro): Determine why Plan 9 is leaking // TODO(0intro): Determine why Plan 9 is leaking
// file descriptors. // file descriptors.
// http://golang.org/issue/7118 // https://golang.org/issue/7118
case "solaris": case "solaris":
// TODO(aram): This fails on Solaris because libc opens // TODO(aram): This fails on Solaris because libc opens
// its own files, as it sees fit. Darwin does the same, // its own files, as it sees fit. Darwin does the same,
// see: http://golang.org/issue/2603 // see: https://golang.org/issue/2603
default: default:
// Now verify that there are no other open fds. // Now verify that there are no other open fds.
var files []*os.File var files []*os.File

View File

@ -1122,7 +1122,7 @@ func TestSeek(t *testing.T) {
if off != tt.out || err != nil { if off != tt.out || err != nil {
if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 { if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 {
// Reiserfs rejects the big seeks. // Reiserfs rejects the big seeks.
// http://golang.org/issue/91 // https://golang.org/issue/91
break break
} }
t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out) t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out)

View 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" { if runtime.GOOS == "darwin" {
switch runtime.GOARCH { switch runtime.GOARCH {
case "arm", "arm64": case "arm", "arm64":

View File

@ -4,7 +4,7 @@
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
# race.bash tests the standard library under the race detector. # 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 set -e

View File

@ -3,7 +3,7 @@
:: license that can be found in the LICENSE file. :: license that can be found in the LICENSE file.
:: race.bash tests the standard library under the race detector. :: 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 @echo off

View File

@ -51,7 +51,7 @@ func MakeFunc(typ Type, fn func(args []Value) (results []Value)) Value {
// Indirect Go func value (dummy) to obtain // Indirect Go func value (dummy) to obtain
// actual code address. (A Go func value is a pointer // 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 dummy := makeFuncStub
code := **(**uintptr)(unsafe.Pointer(&dummy)) code := **(**uintptr)(unsafe.Pointer(&dummy))
@ -99,7 +99,7 @@ func makeMethodValue(op string, v Value) Value {
// Indirect Go func value (dummy) to obtain // Indirect Go func value (dummy) to obtain
// actual code address. (A Go func value is a pointer // 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 dummy := methodValueCall
code := **(**uintptr)(unsafe.Pointer(&dummy)) code := **(**uintptr)(unsafe.Pointer(&dummy))

View File

@ -12,7 +12,7 @@
// for that type. // for that type.
// //
// See "The Laws of Reflection" for an introduction to reflection in Go: // 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 package reflect
import ( import (
@ -389,7 +389,7 @@ type Method struct {
// method name. It is empty for upper case (exported) method names. // method name. It is empty for upper case (exported) method names.
// The combination of PkgPath and Name uniquely identifies a method // The combination of PkgPath and Name uniquely identifies a method
// in a method set. // in a method set.
// See http://golang.org/ref/spec#Uniqueness_of_identifiers // See https://golang.org/ref/spec#Uniqueness_of_identifiers
Name string Name string
PkgPath string PkgPath string
@ -737,7 +737,7 @@ type StructField struct {
// Name is the field name. // Name is the field name.
// PkgPath is the package path that qualifies a lower case (unexported) // PkgPath is the package path that qualifies a lower case (unexported)
// field name. It is empty for upper case (exported) field names. // 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 Name string
PkgPath 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 // directlyAssignable reports whether a value x of type V can be directly
// assigned (using memmove) to a value of type T. // 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) // Ignoring the interface rules (implemented elsewhere)
// and the ideal constant rules (no ideal constants at run time). // and the ideal constant rules (no ideal constants at run time).
func directlyAssignable(T, V *rtype) bool { func directlyAssignable(T, V *rtype) bool {

View File

@ -273,7 +273,7 @@ import (
func main() { func main() {
// This test intends to test that sending SIGPROF to foreign threads // This test intends to test that sending SIGPROF to foreign threads
// before we make any cgo call will not abort the whole process, so // 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) atomic.StoreInt32((*int32)(unsafe.Pointer(&C.spinlock)), 1)
for atomic.LoadInt32((*int32)(unsafe.Pointer(&C.spinlock))) == 1 { for atomic.LoadInt32((*int32)(unsafe.Pointer(&C.spinlock))) == 1 {
runtime.Gosched() runtime.Gosched()

View File

@ -155,5 +155,5 @@ func SetPanicOnFault(enabled bool) bool {
// WriteHeapDump writes a description of the heap and the objects in // WriteHeapDump writes a description of the heap and the objects in
// it to the given file descriptor. // 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) func WriteHeapDump(fd uintptr)

View 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 remaining after the previous collection reaches this percentage. The default
is GOGC=100. Setting GOGC=off disables the garbage collector entirely. is GOGC=100. Setting GOGC=off disables the garbage collector entirely.
The runtime/debug package's SetGCPercent function allows changing this 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. The GODEBUG variable controls debugging variables within the runtime.
It is a comma-separated list of name=val pairs setting these named variables: 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 GOARCH, GOOS, GOPATH, and GOROOT environment variables complete
the set of Go environment variables. They influence the building of Go programs 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 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 constants or functions in this package, but they do not influence the execution
of the run-time system. of the run-time system.

View File

@ -7,7 +7,7 @@
// finalizers, etc.) to a file. // finalizers, etc.) to a file.
// The format of the dumped file is described at // The format of the dumped file is described at
// http://golang.org/s/go14heapdump. // https://golang.org/s/go14heapdump.
package runtime package runtime

View File

@ -152,7 +152,7 @@ const (
// On Windows 64-bit we limit the arena to 32GB or 35 bits. // On Windows 64-bit we limit the arena to 32GB or 35 bits.
// Windows counts memory used by page table into committed memory // Windows counts memory used by page table into committed memory
// of the process, so we can't reserve too much 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 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 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, // On Darwin/arm64, we cannot reserve more than ~5GB of virtual memory,

View File

@ -293,7 +293,7 @@ const (
// This algorithm optimizes for heap growth to match GOGC and for CPU // This algorithm optimizes for heap growth to match GOGC and for CPU
// utilization between assist and background marking to be 25% of // utilization between assist and background marking to be 25% of
// GOMAXPROCS. The high-level design of this algorithm is documented // 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{ var gcController = gcControllerState{
// Initial trigger ratio guess. // Initial trigger ratio guess.
triggerRatio: 7 / 8.0, triggerRatio: 7 / 8.0,

View File

@ -21,7 +21,7 @@ import (
) )
// BUG(rsc): Profiles are incomplete and inaccurate on NetBSD and OS X. // 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 // A Profile is a collection of stack traces showing the call sequences
// that led to instances of a particular event, such as allocation. // that led to instances of a particular event, such as allocation.

View File

@ -20,7 +20,7 @@ import (
func skipTraceTestsIfNeeded(t *testing.T) { func skipTraceTestsIfNeeded(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "solaris": 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": case "darwin":
switch runtime.GOARCH { switch runtime.GOARCH {
case "arm", "arm64": case "arm", "arm64":
@ -32,7 +32,7 @@ func skipTraceTestsIfNeeded(t *testing.T) {
switch runtime.GOARCH { switch runtime.GOARCH {
case "arm": 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)")
} }
} }

View File

@ -21,7 +21,7 @@ var (
// M must have an associated P to execute Go code, however it can be // M must have an associated P to execute Go code, however it can be
// blocked or in a syscall w/o an associated P. // 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 ( const (
// Number of goroutine ids to grab from sched.goidgen to local per-P cache at once. // Number of goroutine ids to grab from sched.goidgen to local per-P cache at once.

View File

@ -5,5 +5,5 @@
// Package race implements data race detection logic. // Package race implements data race detection logic.
// No public interface is provided. // No public interface is provided.
// For details about the race detector see // 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 package race

View File

@ -496,7 +496,7 @@ const (
) )
// Layout of in-memory per-function information prepared by linker // 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 // Keep in sync with linker
// and with package debug/gosym and with symtab.go in package runtime. // and with package debug/gosym and with symtab.go in package runtime.
type _func struct { type _func struct {

View File

@ -60,7 +60,7 @@ func TestStackMem(t *testing.T) {
if consumed > estimate { if consumed > estimate {
t.Fatalf("Stack mem: want %v, got %v", estimate, consumed) 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. // StackInuse can decrease during function execution, so we cast the values to int64.
inuse := int64(s1.StackInuse) - int64(s0.StackInuse) inuse := int64(s1.StackInuse) - int64(s0.StackInuse)
t.Logf("Inuse %vMB for stack mem", inuse>>20) t.Logf("Inuse %vMB for stack mem", inuse>>20)

View File

@ -45,7 +45,7 @@ func rewindmorestack(buf *gobuf) {
// buf.pc, so that when we return we will execute // buf.pc, so that when we return we will execute
// the jump instruction and carry on. This means that // the jump instruction and carry on. This means that
// stack unwinding may not work entirely correctly // 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. // running under gdb anyhow.
return return
} }

View File

@ -8,7 +8,7 @@
// changes of heap size, processor start/stop, etc and writes them to a buffer // 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 // in a compact form. A precise nanosecond-precision timestamp and a stack
// trace is captured for most events. // 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 package runtime

View File

@ -217,7 +217,7 @@ func passFDChild() {
defer os.Exit(0) defer os.Exit(0)
// Look for our fd. It should be fd 3, but we work around an fd leak // 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 var uc *net.UnixConn
for fd := uintptr(3); fd <= 10; fd++ { for fd := uintptr(3); fd <= 10; fd++ {
f := os.NewFile(fd, "unix-conn") f := os.NewFile(fd, "unix-conn")

View File

@ -34,7 +34,7 @@
// its -bench flag is provided. Benchmarks are run sequentially. // its -bench flag is provided. Benchmarks are run sequentially.
// //
// For a description of the testing flags, see // 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: // A sample benchmark function looks like this:
// func BenchmarkHello(b *testing.B) { // func BenchmarkHello(b *testing.B) {

View File

@ -830,7 +830,7 @@ var parseDurationTests = []struct {
{"39h9m14.425s", true, 39*Hour + 9*Minute + 14*Second + 425*Millisecond}, {"39h9m14.425s", true, 39*Hour + 9*Minute + 14*Second + 425*Millisecond},
// large value // large value
{"52763797000ns", true, 52763797000 * Nanosecond}, {"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}, {"0.3333333333333333333h", true, 20 * Minute},
// 9007199254740993 = 1<<53+1 cannot be stored precisely in a float64 // 9007199254740993 = 1<<53+1 cannot be stored precisely in a float64
{"9007199254740993ns", true, (1<<53 + 1) * Nanosecond}, {"9007199254740993ns", true, (1<<53 + 1) * Nanosecond},

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package p

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Used to crash the compiler. // Used to crash the compiler.
// http://golang.org/issue/88 // https://golang.org/issue/88
package main package main

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Used to crash the compiler. // Used to crash the compiler.
// http://golang.org/issue/158 // https://golang.org/issue/158
package main package main

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Used to be rejected // Used to be rejected
// http://golang.org/issue/188 // https://golang.org/issue/188
package main package main

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Used to crash // Used to crash
// http://golang.org/issue/204 // https://golang.org/issue/204
package main package main

View File

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Crashes 6g, 8g // Crashes 6g, 8g
// http://golang.org/issue/238 // https://golang.org/issue/238
package main package main

View File

@ -7,7 +7,7 @@
// function call arg reordering was picking out 1 call that // function call arg reordering was picking out 1 call that
// didn't need to be in a temporary, but it was picking // didn't need to be in a temporary, but it was picking
// out the first call instead of the last call. // out the first call instead of the last call.
// http://golang.org/issue/370 // https://golang.org/issue/370
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/749 // https://golang.org/issue/749
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/662 // https://golang.org/issue/662
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/589 // https://golang.org/issue/589
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/589 // https://golang.org/issue/589
package main package main

View File

@ -13,7 +13,7 @@
// Both gccgo and gofmt correctly refuse this program as is and accept it // Both gccgo and gofmt correctly refuse this program as is and accept it
// when the semicolons are present. // 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 package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/799 // https://golang.org/issue/799
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/808 // https://golang.org/issue/808
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/807 // https://golang.org/issue/807
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 // triggered out of registers on 8g
package bug283 package bug283

View File

@ -6,7 +6,7 @@
// Test for issue 778: Map key values that are assignment // Test for issue 778: Map key values that are assignment
// compatible with the map key type must be accepted according // 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 package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/920 // https://golang.org/issue/920
package main package main

View File

@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// http://golang.org/issue/915 // https://golang.org/issue/915
package main package main

Some files were not shown because too many files have changed in this diff Show More