[x/tour] all: Replace URL of golang.org with using HTTPS
Change-Id: Ifa5acf5c6ca3ca67c44e7cf6f1c3eaadeb921da6
Reviewed-on: https://go-review.googlesource.com/90055
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
X-Tour-Commit: 8d672c900895404ef380aca75be10fa82f191f84
diff --git a/tour/AUTHORS b/tour/AUTHORS
index 15167cd..2b00ddb 100644
--- a/tour/AUTHORS
+++ b/tour/AUTHORS
@@ -1,3 +1,3 @@
# This source code refers to The Go Authors for copyright purposes.
# The master list of authors is in the main Go distribution,
-# visible at http://tip.golang.org/AUTHORS.
+# visible at https://tip.golang.org/AUTHORS.
diff --git a/tour/CONTRIBUTORS b/tour/CONTRIBUTORS
index 1c4577e..1fbd3e9 100644
--- a/tour/CONTRIBUTORS
+++ b/tour/CONTRIBUTORS
@@ -1,3 +1,3 @@
# This source code was written by the Go contributors.
# The master list of contributors is in the main Go distribution,
-# visible at http://tip.golang.org/CONTRIBUTORS.
+# visible at https://tip.golang.org/CONTRIBUTORS.
diff --git a/tour/README.md b/tour/README.md
index 6be93ef..3db4f9a 100644
--- a/tour/README.md
+++ b/tour/README.md
@@ -16,4 +16,4 @@
under the BSD-style license found in the LICENSE file.
Contributions should follow the same procedure as for the Go project:
-http://golang.org/doc/contribute.html
+https://golang.org/doc/contribute.html
diff --git a/tour/content/concurrency/exercise-web-crawler.go b/tour/content/concurrency/exercise-web-crawler.go
index 00a8820..c426e05 100644
--- a/tour/content/concurrency/exercise-web-crawler.go
+++ b/tour/content/concurrency/exercise-web-crawler.go
@@ -34,7 +34,7 @@
}
func main() {
- Crawl("http://golang.org/", 4, fetcher)
+ Crawl("https://golang.org/", 4, fetcher)
}
// fakeFetcher is Fetcher that returns canned results.
@@ -54,34 +54,34 @@
// fetcher is a populated fakeFetcher.
var fetcher = fakeFetcher{
- "http://golang.org/": &fakeResult{
+ "https://golang.org/": &fakeResult{
"The Go Programming Language",
[]string{
- "http://golang.org/pkg/",
- "http://golang.org/cmd/",
+ "https://golang.org/pkg/",
+ "https://golang.org/cmd/",
},
},
- "http://golang.org/pkg/": &fakeResult{
+ "https://golang.org/pkg/": &fakeResult{
"Packages",
[]string{
- "http://golang.org/",
- "http://golang.org/cmd/",
- "http://golang.org/pkg/fmt/",
- "http://golang.org/pkg/os/",
+ "https://golang.org/",
+ "https://golang.org/cmd/",
+ "https://golang.org/pkg/fmt/",
+ "https://golang.org/pkg/os/",
},
},
- "http://golang.org/pkg/fmt/": &fakeResult{
+ "https://golang.org/pkg/fmt/": &fakeResult{
"Package fmt",
[]string{
- "http://golang.org/",
- "http://golang.org/pkg/",
+ "https://golang.org/",
+ "https://golang.org/pkg/",
},
},
- "http://golang.org/pkg/os/": &fakeResult{
+ "https://golang.org/pkg/os/": &fakeResult{
"Package os",
[]string{
- "http://golang.org/",
- "http://golang.org/pkg/",
+ "https://golang.org/",
+ "https://golang.org/pkg/",
},
},
}
diff --git a/tour/content/welcome.article b/tour/content/welcome.article
index 80800f3..82d4f4a 100644
--- a/tour/content/welcome.article
+++ b/tour/content/welcome.article
@@ -76,7 +76,7 @@
#appengine: on your own machine.
#appengine:
#appengine: To run the tour locally first
-#appengine: [[http://golang.org/dl/][download and install Go]]
+#appengine: [[https://golang.org/dl/][download and install Go]]
#appengine: then start the tour from the command line:
#appengine:
#appengine: go tool tour
diff --git a/tour/gotour/appengine.go b/tour/gotour/appengine.go
index 0cf8a5b..4767a2c 100644
--- a/tour/gotour/appengine.go
+++ b/tour/gotour/appengine.go
@@ -18,7 +18,7 @@
_ "golang.org/x/tools/playground"
)
-const runUrl = "http://golang.org/compile"
+const runUrl = "https://golang.org/compile"
func init() {
http.Handle("/lesson/", hstsHandler(lessonHandler))
diff --git a/tour/solutions/webcrawler.go b/tour/solutions/webcrawler.go
index aa3ef94..89b86a8 100644
--- a/tour/solutions/webcrawler.go
+++ b/tour/solutions/webcrawler.go
@@ -20,7 +20,7 @@
// fetched tracks URLs that have been (or are being) fetched.
// The lock must be held while reading from or writing to the map.
-// See http://golang.org/ref/spec#Struct_types section on embedded types.
+// See https://golang.org/ref/spec#Struct_types section on embedded types.
var fetched = struct {
m map[string]error
sync.Mutex
@@ -75,7 +75,7 @@
}
func main() {
- Crawl("http://golang.org/", 4, fetcher)
+ Crawl("https://golang.org/", 4, fetcher)
fmt.Println("Fetching stats\n--------------")
for url, err := range fetched.m {
@@ -104,34 +104,34 @@
// fetcher is a populated fakeFetcher.
var fetcher = &fakeFetcher{
- "http://golang.org/": &fakeResult{
+ "https://golang.org/": &fakeResult{
"The Go Programming Language",
[]string{
- "http://golang.org/pkg/",
- "http://golang.org/cmd/",
+ "https://golang.org/pkg/",
+ "https://golang.org/cmd/",
},
},
- "http://golang.org/pkg/": &fakeResult{
+ "https://golang.org/pkg/": &fakeResult{
"Packages",
[]string{
- "http://golang.org/",
- "http://golang.org/cmd/",
- "http://golang.org/pkg/fmt/",
- "http://golang.org/pkg/os/",
+ "https://golang.org/",
+ "https://golang.org/cmd/",
+ "https://golang.org/pkg/fmt/",
+ "https://golang.org/pkg/os/",
},
},
- "http://golang.org/pkg/fmt/": &fakeResult{
+ "https://golang.org/pkg/fmt/": &fakeResult{
"Package fmt",
[]string{
- "http://golang.org/",
- "http://golang.org/pkg/",
+ "https://golang.org/",
+ "https://golang.org/pkg/",
},
},
- "http://golang.org/pkg/os/": &fakeResult{
+ "https://golang.org/pkg/os/": &fakeResult{
"Package os",
[]string{
- "http://golang.org/",
- "http://golang.org/pkg/",
+ "https://golang.org/",
+ "https://golang.org/pkg/",
},
},
}
diff --git a/tour/static/js/values.js b/tour/static/js/values.js
index 02309f6..1c24ddc 100644
--- a/tour/static/js/values.js
+++ b/tour/static/js/values.js
@@ -10,7 +10,7 @@
value('tableOfContents', [{
'id': 'mechanics',
'title': 'Using the tour',
- 'description': '<p>Welcome to a tour of the <a href="http://golang.org">Go programming language</a>. The tour covers the most important features of the language, mainly:</p>',
+ 'description': '<p>Welcome to a tour of the <a href="https://golang.org">Go programming language</a>. The tour covers the most important features of the language, mainly:</p>',
'lessons': ['welcome']
}, {
'id': 'basics',