aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-02-10make: ganti name configuration gcloud sesuai nama proyekHEADmainShulhan
2026-02-10all: set minimum Go runtime ke versi 1.25.0Shulhan
2026-02-10go.mod: pembaruan semua dependensiShulhan
2026-02-10content/moretypes: perbaikan kataShulhan
Ganti kata "mengindahkan" dengan "mengabaikan". Close #5
2026-02-02local: add support for socket based activation with systemdShulhan
The tour program now can be activated by systemd.socket(5).
2026-02-02go.mod: update all dependenciesShulhan
2024-09-15all: tambah flag untuk mengatur Origin dari koneksi WebSocketShulhan
Misalnya, jika httpListen di set ke "127.0.0.1:10201" dan servis berjalan dibelakang sebuah proksi dengan domain "tour.golang-id.local", koneksi ke WebSocket akan ditolak, karena pada saat handshake origin dari request dicocokan dengan host dan port dari httpListen.
2024-09-15pic: perbaikan path imporShulhan
Bagian kode yang mengimpor "tour" harusnya mengacu ke modul ini.
2024-09-15go.mod: pembaruan dependensiShulhan
2024-09-14local: disable opening browser automatically by defaultShulhan
When the program run using system service, in the background, we did not want it to open browser automatically.
2024-09-14make: add task to install binary on local GOBINShulhan
2024-08-31all: pembaruan dan penyederhanaan READMEShulhan
Perubahan, * Gabung dan perjelas bagian "Pasang" dengan bagian "Berkontribusi" * Tambahkan tautan untuk pelaporan isu dan pengiriman perbaikan * Sederhanakan bagian Penerbitan
2024-08-31LICENSE: update per Google LegalRuss Cox
Very minor tweaks: - Remove (c) pseudosymbol. - Remove "All Rights Reserved." - Change "Google Inc." (no longer exists) to "Google LLC". [git-generate] echo ' ,s/\(c\) // ,s/ All rights reserved.// ,s/Google Inc./Google LLC/ w q ' | sam -d LICENSE Change-Id: I7aa6d7ae247f06f8500155ed1a53db14bd959bd6 Reviewed-on: https://go-review.googlesource.com/c/tour/+/598530 Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Bypass: Russ Cox <rsc@golang.org>
2024-08-31A+C: delete AUTHORS and CONTRIBUTORSRuss Cox
In 2009, Google's open-source lawyers asked us to create the AUTHORS file to define "The Go Authors", and the CONTRIBUTORS file was in keeping with open source best practices of the time. Re-reviewing our repos now in 2022, the open-source lawyers are comfortable with source control history taking the place of the AUTHORS file, and most open source projects no longer maintain CONTRIBUTORS files. To ease maintenance, remove AUTHORS and CONTRIBUTORS from all repos. For golang/go#53961. Change-Id: I9ff618b0e8147821e0bd00c850c9ce13b9c16e29 Reviewed-on: https://go-review.googlesource.com/c/tour/+/418925 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
2024-07-14go.mod: perbarui semua dependensi modulShulhan
2024-07-14all: sync with golang.org/x/website (2/2)Shulhan
Perubahan, * _content/tour: change '// +build' to '//go:build'
2024-07-14all: gabungkan perubahan dari golang.org/x/website/_content/tourShulhan
Perubahan yang diambil, * 9d77df7a - _content: replace scheme-relative URLs with "https://" * b8a52b2c - _content: replace talks.golang.org links with go.dev/talks * f7508267 - tour/content: remove links to broken translations * 53bf622d - _content/tour: add a link to the Ukraininan translation * 80138e48 - _content: add dark mode to go.dev/tour * 6fcd42d2 - _content: apply white color in transparent gopher, for dark theme * bc602d60 - _content/tour/static/lib: sync jquery@3.7.0 jquery-ui@1.13.2 * 9a8a0a00 - _content/tour/static/js: fix type errors * f8747b4b - _content/tour: improve color contrast for dark theme * 9817d4fb - _content/tour: add dark theme cursor and selection styles * a84f6ee5 - tour: call 'done' callback after Run, on message Kind 'system'
2024-07-14content/basics: hapus keterangan tentang deterministikShulhan
Sejak Go 1.20, paket "math/rand" tidak perlu memanggil [rand.Seed] lagi karena telah otomatis diinisialisasi oleh runtime. Perubahan ini berdasarkan golang.org/x/website@2e65c647b00d
2024-07-14content: tambahkan artikel tentang GenerikShulhan
Artikel Generik berisi dua bagian: * Parameter tipe: contoh penggunaan parameter tipe pada fungsi generik * Tipe generik: contoh struktur data generik Perubahan ini berdasarkan golang.org/x/website@b970f4b5b0 .
2023-11-12all: update Go runtime to version 1.21Shulhan
2023-11-12Merge commit '3891a3eb15c0'Shulhan
Merge commit dari upstream sebelum semua berkas dihapus karena digabung dengan golang.org/x/website di commit 241d4738f53e9d
2023-03-03all: update all dependencies and the minimum Go to 1.18Shulhan
While at it, add the command to changes the active gcloud configuration on task deploy.
2023-03-03all: pembaruan READMEShulhan
Perubahan, * gunakan tautan kanonis untuk situs tour * hapus penggunaan environment GO111MODULE=on pada langkah pemasangan
2021-05-26app.yaml: remove GOLANGORG_CHECK_COUNTRYRuss Cox
Nothing in this package or its dependencies uses this variable, after CL 293449. Change-Id: I82972cbb7abbeff6c3f4ca757c61ba966b666c19 Reviewed-on: https://go-review.googlesource.com/c/tour/+/295489 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-05-26all: go get golang.org/x/tools@a3eb095d6ae && go mod tidyRuss Cox
Bring in CL 293449 (and more) to remove /share playground proxy. Change-Id: I761ddb0797e3032f79ac3fd91e3f5c4bd4307eda Reviewed-on: https://go-review.googlesource.com/c/tour/+/296371 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-05-12content: remove link to old video showing GOPATH workflowAlberto Donizetti
The final 'Where to Go from here...' page of the tour suggests, as next step, to look at a YT screencast titled 'Writing, building, installing, and testing Go code', or to read the 'How To Write Go Code' document. The screencast is from 2012, so of course it shows the old GOPATH workflow. This change removes the link to the video, and leaves the suggestion to read 'How To Write Go Code', to make sure beginners won't start using the legacy GOPATH-based workflow. Fixes golang/tour#1089 Change-Id: Ib826298127d8465055c85a2537732e61ff21cdb0 Reviewed-on: https://go-review.googlesource.com/c/tour/+/319429 Trust: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-05-12content: use uniform dashes in translation linksAlberto Donizetti
Fixes golang/tour#1179 Change-Id: I080c12cad0a6a6d2e4bee9b5af1aa01cb90e4a5a Reviewed-on: https://go-review.googlesource.com/c/tour/+/319309 Trust: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-03-29content: add link to Polish translationMStokluska
Change-Id: I8afdf85924e8eeba179d23cc9f978d4236ab740e GitHub-Last-Rev: 9ad40ae1da2fb486932e777b02db5cf57fc58320 GitHub-Pull-Request: golang/tour#1136 Reviewed-on: https://go-review.googlesource.com/c/tour/+/298150 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Alberto Donizetti <alb.donizetti@gmail.com>
2021-03-17content: remove links to translations that are not onlineAlberto Donizetti
After appspot deprecated Go 1.9, a few of the tour translations we link to went offline. I've reported the issue on their issue trackers 6 month ago (Issue golang/tour#1039 tracks this). A few of them were redeployed and went back online, but others are still offline (and now appspot returns a 500 Internal Server Error status for those). After a 6 months grace period, this change removes the links to the translations that are still offline from the welcome page. Updates golang/tour#1039 Updates golang/go#41219 Fixes golang/go#44382 Change-Id: I82bab0b78273b5b26dab0714ed6e6e6feaea1725 Reviewed-on: https://go-review.googlesource.com/c/tour/+/298209 Trust: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-03-05tour: look for content in module cache, not GOROOT/misc/tourDmitri Shuralyov
Tour content hasn't been available in GOROOT since Go 1.12¹, so stop looking for it there. A more useful fallback place to find tour content is the module cache. When the golang.org/x/tour is in the build list, it will be found via build.Import. It will not be found, however, when the tour binary is run outside of a module. This situation is more common as of Go 1.16, since the default GO111MODULE value changed to on². If the version of the tour binary is known, access the content for that version from the module cache. In the future, this complex and imperfect machinery will be replaced with simply embedding the needed files in the binary. We can't do that quite yet (not without duplicating a lot of code) because Go 1.15 is supported, and because Go 1.14 is used for deployment. It's not neccessary to provide a custom socket.Environ (which served to provide a custom GOPATH value pointing inside GOROOT; that path is being removed here). Delete it along with some other unused code. ¹ https://golang.org/doc/go1.12#tour ² https://golang.org/doc/go1.16#modules Fixes golang/go#44243. Change-Id: Ia239700170b8614d21cafe9617b51dddf3e337d5 Reviewed-on: https://go-review.googlesource.com/c/tour/+/298529 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
2021-03-04tour: build snippets in module modeDmitri Shuralyov
We want to start building snippets in module mode rather than legacy legacy GOPATH mode, to make tour work well when there's no tour code in GOPATH/src and to be more future-proof. Building in module mode means we need to specify a go.mod file to use for each snippet. The tour web UI design predates the module mode and its go.mod files. Txtar-based multi-file support was added to the playground (that the tour uses for executing snippets) in golang.org/issue/32040, but the web UI hasn't been updated to have first-class separate <textarea> elements or tabs for editing multiple files. For now, we can get by with providing a default go.mod file for all tour snippets, since they only need some packages in the tour module. Update to a newer version of the golang.org/x/tools/playground/socket package which includes multi-file snippet support added in CL 204237. For golang/go#44243. Change-Id: Ib05725c52fbe43658b2f22ac728b1e901e635824 Reviewed-on: https://go-review.googlesource.com/c/tour/+/291889 Trust: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
2020-12-07README.md: add badge to pkg.go.devJulie Qiu
Change-Id: Ifa508b83e5b02db6a3d5a173879fab17bdd4a50d Reviewed-on: https://go-review.googlesource.com/c/tour/+/275196 Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Julie Qiu <julie@golang.org>
2020-11-06tour: update to the App Engine Go 1.14 runtimeDmitri Shuralyov
Reference: • https://cloud.google.com/appengine/docs/standard/go/runtime Change-Id: I46b87098ed04c9c5d9f84193c9d72f9d30a59233 Reviewed-on: https://go-review.googlesource.com/c/tour/+/266818 Trust: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
2020-11-06tour: redirect HTTP traffic to HTTPSDmitri Shuralyov
Set secure to always on all handlers so that HTTP traffic is redirected to an HTTPS URL with the same path. References: • https://cloud.google.com/appengine/docs/standard/go/application-security#https_requests • https://cloud.google.com/appengine/docs/standard/go/config/appref#handlers_secure For golang/go#42281. Change-Id: Ic03e01d5858e1e5b8ae1b523ab34d970e1403ce0 Reviewed-on: https://go-review.googlesource.com/c/tour/+/266817 Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
2020-10-07content: link to working and updated korean translationAlberto Donizetti
The korean translation we link to is offline due to the Go 1.9 is no longer available. error; but even before that it was quite outdated (last re-deployment was ~6 years ago). A few people have been working on an updated translation, which they deployed at go-tour-ko.appspot.com (repo github.com/golang-ko/tour). I don't speak korean but I've skimmed through it and it looks fine. Link to the new one. Updates golang/tour#1026 Fixes golang/tour#709 Fixes golang/tour#1027 Change-Id: I08edb12737a82381aeb33bb3f324e87b92936115 Reviewed-on: https://go-review.googlesource.com/c/tour/+/253337 Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Alberto Donizetti <alb.donizetti@gmail.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
2020-05-08pic: don't make a string copy when writing imageDmitri Shuralyov
Previously, the entire image was encoded into a buffer, then encoded to a base64 string, which was concatenated with another string, and written to stdout in one swoop. We can do this more efficiently by writing the PNG image to a base64 encoder directly, and using buffered I/O to batch writes to stdout into moderately-sized chunks. As an added bonus, though really the main motivation for doing this optimization now, this helps avoid triggering the golang/go#38751 issue on the Go Playground. Switch to the best compression level instead of the default, reducing encoded image size at the cost of extra computation. Playground snippets need to be transferred over the network and kept in storage, so it should be a favorable trade-off. This CL was based on CL 232177. For golang/go#38751. Change-Id: I565fe538aa15910caaff98be156ac64b0d35fff4 Co-authored-by: Alexander Rakoczy <alex@golang.org> Reviewed-on: https://go-review.googlesource.com/c/tour/+/232867 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org>
2020-05-08pic: add a testDmitri Shuralyov
It's hard to write a normal test because ShowImage writes to os.Stdout unconditionally. Add an example test instead. Change-Id: I52e02908e94aa212a05c058edb4f504851b5bb8d Reviewed-on: https://go-review.googlesource.com/c/tour/+/232866 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org>
2020-05-08pic: document packageDmitri Shuralyov
Effective Go¹ says every package should have a package comment, and every exported name in a package should have a doc comment. This package is mentioned in the Go tour. Let's set a good example. ¹ https://golang.org/doc/effective_go.html#commentary Change-Id: Iac561c7530fc49d5ff17c51d925151ec8319ef24 Reviewed-on: https://go-review.googlesource.com/c/tour/+/232865 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org>
2020-02-10content: terjemahkan bagian pada "Perintah range"Shulhan
2020-02-01README: clarify where tour issues should be reportedAlberto Donizetti
Issues with the tour code should be reported in the tracker at github.com/golang/go/issues While the 'report bug' button in the tour itself points to the issue tracker at github.com/golang/tour/issues which is the one where issues about the tour's content should be reported. Make this clear in the README. Fixes golang/go#36843 Change-Id: I7844ea1a15470fdfbc970a9485d37250a6c38779 Reviewed-on: https://go-review.googlesource.com/c/tour/+/217357 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-01-25all: pembaruan dengan upstream versi 2bf82070Shulhan
2020-01-25static: remove executable bit on all static filesShulhan
2020-01-25make: change serve and deploy tasks to use Cloud SDKShulhan
Previous serve and deploy use app-engine SDK using CLI "goapp". The latest update on tour (after updating with upstream) use Cloud SDK command "dev_appserver.py" and "gcloud".
2020-01-25all: migrasi repository ke "github.com/golang-id/tour"Shulhan
Awalnya, terjemahan tur bahasa Indonesia diawali oleh Akeda Bagus (@gedex) yang disimpan di repository "github.com/golang-id/go-tour-id". Namun, terjemahan ini tertinggal jauh, terakhir diperbarui yaitu 2013-08-17. Selanjutnya, terjemahan dimulai ulang oleh @shuLhan dari awal karena struktur direktori dan berkasnya sudah jauh berubah. Terjemahan kedua disimpan di repository "github.com/Go-ID-community/go-tour-id". Repository ini menggabungkan keduanya dan disimpan di repository yang baru "github.com/golang-id/tour".
2020-01-25all: update module, repository, and import pathShulhan
Since this repository use Go module now, to minimize unneeded dependency to "golang.org/x/tour", we rename the import path on directory "contents" and "solutions" to use our repository.
2020-01-25content/basics: perbaikan kata "konstant" dan beberapa kalimatShulhan
Kata "konstant" tidak ada dalam kamus bahasa Indonesia, yang ada adalah "konstan" dan "konstanta". Untuk perbaikan kalimat, perjelas sub judul pada fungsi dan konten pada fungsi dengan "naked return"
2020-01-25Update content with fixes on some typosShulhan
2020-01-25Translate README into Bahasa IndonesiaShulhan
2020-01-25[layout] Fix import and syntax checkbox layout on screen width 960pxShulhan
2020-01-25[Fix #6] Content title overlapped with top nav on mobileShulhan