I'm part of the Gophers-Latam Community. I am excited to present our
translation of the Tour of Go, a collaborative effort of our community.
It's available at https://go-tour-lat.appspot.com/.
Fixesgolang/go#64454
Change-Id: Icd6e1f8ec340deea992858571c03bc2ae933d72b
GitHub-Last-Rev: 45234eb657
GitHub-Pull-Request: golang/website#264
Reviewed-on: https://go-review.googlesource.com/c/website/+/545855
Reviewed-by: Thiago Mowszet <thiagomowszet@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Rename no-build to nobuild, no-run to norun because it's forbidden
to use hyphen in a build constraint name.
Change-Id: Ide0cd3c72f6c79c640b601c0526e08223de04610
Reviewed-on: https://go-review.googlesource.com/c/website/+/594815
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
- Add missing '// +build' comments for generics examples.
- Add build tags 'OMIT', 'no-run' for solutions examples.
- Move content_test.go to the root because 'go' ignores
packages in the '_content' directory.
- Remove usages of deprecated 'io/ioutil'.
Change-Id: I8e6b717d43df9e2b55e4b796db5b316860f42103
Reviewed-on: https://go-review.googlesource.com/c/website/+/592875
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
To restore the button Run and hide the button Kill (in A Tour of Go,
not in the main Playground), writeInterceptor is expecting a call of
Kind 'end'. However, on compilation error the last call emitted has
Kind 'system'.
Fixesgolang/go#50921
Change-Id: I698331e477e79fef368550d5976b5b2fc0b03e83
Reviewed-on: https://go-review.googlesource.com/c/website/+/478415
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eno Compton <enocom@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Test that links are to /foo not https://go.dev/foo
and also check that the links actually point at real pages.
Manually fix problems that the test found.
For golang/go#37047.
Change-Id: I825eec3c2cadb9d259caff51cd893f3023ab533a
Reviewed-on: https://go-review.googlesource.com/c/website/+/548059
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Add styles for dark theme cursor and selection.
Cursor color set equal to the foreground color.
Focused selection color set to the complement color
of the background color and inactive selection
is the lighter tint of it.
Fixesgolang/go#63313
Change-Id: If9702f45262eea330d42ec0fd9717b36da026540
GitHub-Last-Rev: 1545bbaea9
GitHub-Pull-Request: golang/website#253
Reviewed-on: https://go-review.googlesource.com/c/website/+/531856
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Suzy Mueller <suzmue@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Updated the color to improve the color contrast when using dark
mode. More or less tried to pick a lighter color of the light
mode color.
Color contrast changes:
- cm.atom: 1.02 -> 6.26
- cm.comment: 2.42 -> 7.6
Fixesgolang/go#63229
Change-Id: Ie6257b71d32d8cccf11025e74108e80ae4f9b36d
Reviewed-on: https://go-review.googlesource.com/c/website/+/531215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Missing word "methods" in fourth paragraph of screen "Choosing a value or pointer receiver". Reads more clearly when what is being talked about is identified.
Fixesgolang/tour#1352
Change-Id: I569f7ceed2e732c9e0485270828dcab387f86c71
GitHub-Last-Rev: b086ba8212
GitHub-Pull-Request: golang/website#197
Reviewed-on: https://go-review.googlesource.com/c/website/+/471315
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
With go 1.20 "math/rand package now automatically seeds the global random number generator" (https://go.dev/doc/go1.20#math/rand) and we do not need the appengine specific note that the Go Playground environment for the tour programs is deterministic.
As the note is specific to the appengine version (i.e. it is already not shown in the Go offline tour) it should be fine to just remove the text.
Fixesgolang/tour#1448
Change-Id: Ice84497dbe95c5e3e89fec2d44d4cb74bc2dd5be
GitHub-Last-Rev: b27bc7bf12
GitHub-Pull-Request: golang/website#194
Reviewed-on: https://go-review.googlesource.com/c/website/+/469575
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
- updates some links that were pointing to /dl to /doc/install
- Add "About Go Packages" link to the footer nav under "Packages"
Video: https://drive.google.com/file/d/1hAxhpJpHsAnHf5ww267IK6ovWnL-S1dG/view?usp=sharing
Change-Id: I0d71b095a6a60b809a5bceff9cc5fe4a38d5eb91
Reviewed-on: https://go-review.googlesource.com/c/website/+/449415
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Change-Id: I0754d18f4c3c3d5dfa0c34b4bc154a35ac20b917
Reviewed-on: https://go-review.googlesource.com/c/website/+/411794
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
The site is served at both go.dev and golang.google.cn.
In China, only golang.google.cn can serve, so we try to use
relative links to avoid pointing users to the copy they can't access.
Periodically we have to remove prefixes that have crept in.
This commit applies today's round of that.
Change-Id: Iaa169635664d0562a1cccc57c3e02b687b3493e7
Reviewed-on: https://go-review.googlesource.com/c/website/+/378597
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <katiehockman@google.com>
Trust: DO NOT USE <katiehockman@google.com>
The tree image at the concurrency/7 is not visible because the lessons
uses
.image /tour/static/img/tree.png
but /img/tree.png was moved at the top level content dir. Move the
image into static/img to fix the link, we don't need an additional img
folder at top level.
Fixesgolang/tour#1277Fixesgolang/tour#1274
Change-Id: I0a7d2cada7f33e7b84aac1bc6844e7f45754a1ec
Reviewed-on: https://go-review.googlesource.com/c/website/+/367334
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
These translations have been unavailable for some time.
Updates golang/tour#1039Fixesgolang/go#49900
Change-Id: I511848e600d4cb49a60cd1ce6778805e093ab0d9
Reviewed-on: https://go-review.googlesource.com/c/website/+/368138
Trust: Alexander Rakoczy <alex@golang.org>
Run-TryBot: Alexander Rakoczy <alex@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Website-Publish: Dmitri Shuralyov <dmitshur@google.com>
Some links were missing the /tour/ at the front.
The tour also has links like <a href="javascript:next()">, which require
us to set unsafe-inline (or else enumerate the SHA256 of every link)
in the CSP header.
Also make the local server a bit more tour-friendly.
Fixesgolang/go#49880.
Change-Id: Ice746571db1a34e1c02b4b2a16c4e9f30dc164d1
Reviewed-on: https://go-review.googlesource.com/c/website/+/368034
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
go.dev uses /_/fmt, not /fmt.
Fix the JavaScript and then the standalone tour binary to both use /_/fmt too.
Fixesgolang/go#49746.
Change-Id: Ic59c6afb99748ed8c3e74c69c2d753671d92432b
Reviewed-on: https://go-review.googlesource.com/c/website/+/366977
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
The time for scheme-relative URLs has passed.
go.dev, like all of .dev, is an HTTPS-only domain.
And golang.org has set HSTS headers for years too.
So these relative links are always going to be https:// on the internet.
When serving from http://localhost, they turn into http://,
which is never what we want.
So rewrite them all to hard-code https://.
Change-Id: I1c25108910a12f2974b8f6ba86d49d0b697516a4
Reviewed-on: https://go-review.googlesource.com/c/website/+/365099
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
tour.golang.org is the last independent server in this repository
and almost the last golang.org domain with user-facing content.
(talks.golang.org remains.)
We need to keep golang.org/x/website/tour as a runnable binary,
but move the logic into internal/tour so it can be used from both
the tour binary and cmd/golangorg.
After this is deployed, we will need to delete the current tour app
from the golang-org project, and then requests for tour.golang.org
will default to the main server (cmd/golangorg).
This will make the tour available in China for the first time,
at golang.google.cn/tour.
Change-Id: I0f025d8ae89e12489d26bb3bc380a833eeb57bcc
Reviewed-on: https://go-review.googlesource.com/c/website/+/365100
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>