aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2018-01-26 10:45:22 +0900
committerBrad Fitzpatrick <bradfitz@golang.org>2018-01-26 02:04:58 +0000
commit8d672c900895404ef380aca75be10fa82f191f84 (patch)
tree939782eb72605254b8251a3dca56db822c4d216a
parent65fff99b2f877724f97e10c96175e2a2bef5be86 (diff)
downloadgolang-id-tour-8d672c900895404ef380aca75be10fa82f191f84.tar.xz
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>
-rw-r--r--AUTHORS2
-rw-r--r--CONTRIBUTORS2
-rw-r--r--README.md2
-rw-r--r--content/concurrency/exercise-web-crawler.go30
-rw-r--r--content/welcome.article2
-rw-r--r--gotour/appengine.go2
-rw-r--r--solutions/webcrawler.go32
-rw-r--r--static/js/values.js2
8 files changed, 37 insertions, 37 deletions
diff --git a/AUTHORS b/AUTHORS
index 15167cd..2b00ddb 100644
--- a/AUTHORS
+++ b/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/CONTRIBUTORS b/CONTRIBUTORS
index 1c4577e..1fbd3e9 100644
--- a/CONTRIBUTORS
+++ b/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/README.md b/README.md
index 6be93ef..3db4f9a 100644
--- a/README.md
+++ b/README.md
@@ -16,4 +16,4 @@ Unless otherwise noted, the go-tour source files are distributed
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/content/concurrency/exercise-web-crawler.go b/content/concurrency/exercise-web-crawler.go
index 00a8820..c426e05 100644
--- a/content/concurrency/exercise-web-crawler.go
+++ b/content/concurrency/exercise-web-crawler.go
@@ -34,7 +34,7 @@ func Crawl(url string, depth int, fetcher Fetcher) {
}
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 @@ func (f fakeFetcher) Fetch(url string) (string, []string, error) {
// 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/content/welcome.article b/content/welcome.article
index 80800f3..82d4f4a 100644
--- a/content/welcome.article
+++ b/content/welcome.article
@@ -76,7 +76,7 @@ Click the [[javascript:highlightAndClick(".next-page")]["next"]] button or type
#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/gotour/appengine.go b/gotour/appengine.go
index 0cf8a5b..4767a2c 100644
--- a/gotour/appengine.go
+++ b/gotour/appengine.go
@@ -18,7 +18,7 @@ import (
_ "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/solutions/webcrawler.go b/solutions/webcrawler.go
index aa3ef94..89b86a8 100644
--- a/solutions/webcrawler.go
+++ b/solutions/webcrawler.go
@@ -20,7 +20,7 @@ type Fetcher interface {
// 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 Crawl(url string, depth int, fetcher Fetcher) {
}
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 @@ func (f *fakeFetcher) Fetch(url string) (string, []string, error) {
// 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/static/js/values.js b/static/js/values.js
index 02309f6..1c24ddc 100644
--- a/static/js/values.js
+++ b/static/js/values.js
@@ -10,7 +10,7 @@ angular.module('tour.values', []).
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',