Граф коммитов

744 Коммитов

Автор SHA1 Сообщение Дата
Jamal Carvalho 7f03d6853e _content: add cookie notification banner
Change-Id: I5bbdc9f7d685736ffddd5c5289c39c68c777088e
Reviewed-on: https://go-review.googlesource.com/c/website/+/492676
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-23 14:58:45 +00:00
Sean Liao c3f7ee19df _content/ref: note "go get" reject -mod flag
Fixes golang/go#44760

Change-Id: I09c7dcf4dc2b7185cfbbbab063d23bcdfbb1119d
Reviewed-on: https://go-review.googlesource.com/c/website/+/475715
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-05-20 17:31:09 +00:00
Sean Liao 61f7636832 _content: link to definition of "first sentence"
Fixes golang/go#59206

Change-Id: Ib3b92614acbceb5452c2a5d08623cc2e6cf5b182
Reviewed-on: https://go-review.googlesource.com/c/website/+/496495
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-20 15:22:17 +00:00
Eli Bendersky b202069057 _content/doc: fixes to the table of contents
Move FAQ from the Modules section (where it doesn't belong), and remove
a stale header since a whole section exists about DB access.

Change-Id: If40e1ba2e606b4b2a4135aea5904a803b674b5b4
Reviewed-on: https://go-review.googlesource.com/c/website/+/496555
Run-TryBot: Eli Bendersky‎ <eliben@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cameron Balahan <cbalahan@google.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
2023-05-19 20:51:49 +00:00
ariathaker b3eae53547 _content/doc/tutorial: added govulncheck tutorial
A new tutorial is added which explains how to use govulncheck, using an
example from golang.org/x/text.

Change-Id: Ifcaab5b4d3787642a19b773cb725a5127d01e7e8
Reviewed-on: https://go-review.googlesource.com/c/website/+/488935
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-05-17 17:39:18 +00:00
ariathaker fb9b68ce35 _content/security: update the Go security page
Update the Go security page to restructure the information and reframe
around expected user journeys.

Change-Id: I9f802c3f8dd7ffb692b4608b37c4f8c1d94391a5
Reviewed-on: https://go-review.googlesource.com/c/website/+/488875
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
2023-05-17 17:13:16 +00:00
Viktor 53bf622d51 _content/tour: add a link to the Ukraininan translation
Add a link to the Ukrainian translation to "A Tour of Go".

Link: https://go-tour-ua-translation.lm.r.appspot.com

Fixes golang/go#59945.

Change-Id: I688c6d89914e8bcce4b71a9eb381fe3c196776bd
GitHub-Last-Rev: 1d5608cb80
GitHub-Pull-Request: golang/website#224
Reviewed-on: https://go-review.googlesource.com/c/website/+/492215
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-05-15 17:42:03 +00:00
Dmitri Shuralyov cd3dc4298d _content/doc: update testdir import path in contribution guide
It's changed slightly to be inside 'cmd'.

For golang/go#56844.
For golang/go#60059.

Change-Id: I244f0ae627978a7b59d6a56d20aebc3ff81b3179
Reviewed-on: https://go-review.googlesource.com/c/website/+/493915
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-05-12 17:20:21 +00:00
Sean Liao 9110c24c89 _content/ref: remove go get from build commands
Fixes golang/go#60110

Change-Id: I4513db35a100695801a29c33783061f1b485197d
Reviewed-on: https://go-review.googlesource.com/c/website/+/494235
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-05-11 23:38:24 +00:00
Todd Kulesza 3f5af7e652 _content/blog: fix chart fonts and line wrapping
Change-Id: I4a08ac829a9a74d640675ee52a9005665fd2d073
Reviewed-on: https://go-review.googlesource.com/c/website/+/494415
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cameron Balahan <cbalahan@google.com>
Reviewed-by: Alice Merrick <amerrick@google.com>
Run-TryBot: Todd Kulesza <tkulesza@google.com>
2023-05-11 18:26:20 +00:00
Alice Merrick 556b706eb3 blog: Go developer survey results 2023q1
Change-Id: I7100ca56b8419cd00b5531de18c7629ae329657f
Reviewed-on: https://go-review.googlesource.com/c/website/+/492621
Reviewed-by: Cameron Balahan <cbalahan@google.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Auto-Submit: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Eli Bendersky <eliben@google.com>
2023-05-11 16:20:12 +00:00
Julie Qiu d586ed704b _content/security: update policy for PUBLIC issues
Update the security policy to include information about PUBLIC issues
going through the proposal review process and being labeled with
`Proposal-Security`.

Change-Id: I19dee1c9abc2219ba908a8533040617b20f0a779
Reviewed-on: https://go-review.googlesource.com/c/website/+/491655
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-09 17:56:21 +00:00
Robert Findley a358479459 _content: fix package name in branch module image
The v2 branch should use the name "package1" for its example package, to
be consistent with the v1 branch and the subsequent documentation.

I edited the image in GIMP and exported with maximal compression, then
used optipng to optimize the resulting file, but still did not quite
achieve the previous level of compression.

Fixes golang/go#59948

Change-Id: I64d9d4d21e5bf79731cdd02401420bd81e2bb33d
Reviewed-on: https://go-review.googlesource.com/c/website/+/492475
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-05-04 14:33:33 +00:00
Sean Liao 52d3c8aedc _content/blog: fix command output
Fixes golang/go#59778

Change-Id: I5eaa2882e8d53cfbfa05c13f536419ef82a898b2
Reviewed-on: https://go-review.googlesource.com/c/website/+/487735
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: Bryan Mills <bcmills@google.com>
2023-04-24 13:37:12 +00:00
Jamal Carvalho 274652299d _content: add toggle to display other ports on download page
Fixes golang/go#59317.

Change-Id: I1fd8020838f519b3a481745a979a0253458e4257
Reviewed-on: https://go-review.googlesource.com/c/website/+/486555
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-04-20 04:48:43 +00:00
ariathaker 8d26d85414 _content: change nav dropdown text to "Security"
For golang/go#57972

Change-Id: Ibad8a1ffb1a63b9bb2d45daaad53bc52455d7766
Reviewed-on: https://go-review.googlesource.com/c/website/+/483777
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-04-19 21:18:28 +00:00
Hana (Hyang-Ah) Kim 5d864d6812 _content/security/vuln: add editor.md
This page explains the editor integration and shows example
editor configurations to enable the features.

Change-Id: I75a4a9b0ff28fd2c5392da2b696255331b186c2c
Reviewed-on: https://go-review.googlesource.com/c/website/+/485815
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-04-19 20:15:00 +00:00
Tatiana Bradley c9102372a4 _content/security/vuln: update docs
Change-Id: Ib7fd65687c7b8e0ed0c45985ab50fea5c5feae17
Reviewed-on: https://go-review.googlesource.com/c/website/+/485955
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
2023-04-18 21:24:42 +00:00
Tatiana Bradley e0bde46eda _content/security/vuln: replace API docs with v1
Change-Id: I729d5d37acb8c4b62fa57a90b490d4ef0e89be68
Reviewed-on: https://go-review.googlesource.com/c/website/+/485837
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-04-18 17:37:14 +00:00
Tatiana Bradley e060ae6050 _content/security/vuln: remove mention of multiple dbs in docs
Change-Id: I2d298351c83a141e145e166a548e87276887968e
Reviewed-on: https://go-review.googlesource.com/c/website/+/485836
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-04-18 17:36:45 +00:00
Daniel Frederick Crisman 5fcfc44508 _content/doc: remove second extra < in HTML
Commit 18b7f5b1d4 from last week, updated the release notes for 1.19 and
1.20 which included a copy/paste HTML formatting error, fixing the second
place here. Also verified these were the only two places in website that got
this typo. The comment version of this in go repo is not HTML formatted, so
no typo.

Typo from an update last week, remove an second extra '<'.

Updates golang/go#59534

Change-Id: I343c48f143bbeae14dbd0e589eaa531baa580f9d
GitHub-Last-Rev: f0a55b2ae7
GitHub-Pull-Request: golang/website#221
Reviewed-on: https://go-review.googlesource.com/c/website/+/483977
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-04-12 19:35:30 +00:00
Daniel Frederick Crisman cd8568966a _content/doc: remove extra < in HTML formatting
Typo from an update last week, remove an extra '<'.

Fixes golang/go#59534

Change-Id: Ic8f08121a1abbe9967136c68bba07c6d43820686
GitHub-Last-Rev: 2b2d79b7a2
GitHub-Pull-Request: golang/website#220
Reviewed-on: https://go-review.googlesource.com/c/website/+/483735
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2023-04-11 20:29:36 +00:00
Jamal Carvalho 41e922072f _content/tour: fix top-left link to homepage
Fixes golang/go#59094.

Change-Id: I240bb8abfd663f5e5dea687d28c1b1c5d4b58980
Reviewed-on: https://go-review.googlesource.com/c/website/+/481675
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-04-05 16:34:43 +00:00
Michael Anthony Knyszek 18b7f5b1d4 _content/doc: update release notes with backwards incompatible changes
Go 1.19.8 and Go 1.20.3 had backwards-incompatible changes. Raise their
visibility by updating the release notes for Go 1.19 and Go 1.20.

Updates #59153.
Updates #59234.

Change-Id: Icd472bd5754c3dea1a1459e364746600826889b1
Reviewed-on: https://go-review.googlesource.com/c/website/+/482240
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-04-05 15:37:47 +00:00
Tatiana Bradley 20890b56f4 _content/security/vuln: document the database_specific.url OSV field
Change-Id: Id49062ae7780f414a862976106548b3eeb9d5c6a
Reviewed-on: https://go-review.googlesource.com/c/website/+/482236
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-04-05 15:36:13 +00:00
Jamal Carvalho e9ef0abe70 _content: download link on install doc goes to download page
There is no way to reliably detect system architecture and the
install doc page is missing appropriate legal disclaimers and
notifications. Updating the button to redirect to the download
page.

For #golang/go#52487.

Change-Id: I032ac3ea3699a89acc916a8ffeafc018d51ff8f3
Reviewed-on: https://go-review.googlesource.com/c/website/+/480955
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2023-04-05 14:56:14 +00:00
Jamal Carvalho d5b86284c6 _content: remove dead code on download page
Inline JS is not allowed by our CSP. This code does not
execute and is reported as an error in the inspector console.

Change-Id: Ic56e86b6e12ed2b4fcdd20c07026cf29ae4c7c40
Reviewed-on: https://go-review.googlesource.com/c/website/+/480956
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-03-31 20:09:18 +00:00
Robert Findley fe2f2e7c05 internal/play: fix support for vet errors in playground output
The compile proxy for go.dev/play was not forwarding the Request.WithVet
or Response.VetErrors fields, resulting in no vet errors in the new
playground. Furthermore, it looked like the styling intended for errors
and system messages was not being correctly applied, due to CSS
selectors changing.

Fix both of these bugs, assuming that the broken styling is in fact a
bug.

Result at https://github.com/golang/go/issues/58560#issuecomment-1480044674

Fixes golang/go#58560

Change-Id: If7a9a4323414f4c844e90bd340d93a74e59ce462
Reviewed-on: https://go-review.googlesource.com/c/website/+/478576
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-03-29 15:03:50 +00:00
Martin Kraft 2f994f811f _content/doc: modernize spelling of "boilerplate"
Change-Id: Ic3346a42c91b0bb12904b382ef86b24c2db63b70
Reviewed-on: https://go-review.googlesource.com/c/website/+/477515
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
2023-03-24 18:05:08 +00:00
hermannm 1299b4df8a x/website: update featured elasticsearch client
The Elasticsearch client currently featured at https://go.dev/, https://go.dev/solutions/webdev and https://go.dev/solutions/cloud is https://github.com/olivere/elastic, which has been deprecated (see the sidebar in the repo) in favor of the official client https://github.com/elastic/go-elasticsearch. As explained under "UPDATE 2022-07-13" in https://github.com/olivere/elastic/issues/1533, olivere/elastic will not be updated for newer Elasticsearch versions.

This patch changes the featured Elasticsearch client from olivere/elastic to elastic/go-elasticsearch. It also updates the version of elastic/go-elasticsearch linked at the top of the webdev page. Lastly, it fixes typos in "A Elasticsearch client" -> "An Elasticsearch client" and "ElasticSearch" -> "Elasticsearch" (which is the correct spelling, per https://www.elastic.co/elasticsearch/).

Fixes golang/go#59028

Change-Id: I71fcf62a6030cebc2c6d7944c1327501714fdfdd
Reviewed-on: https://go-review.googlesource.com/c/website/+/476156
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-03-24 17:48:51 +00:00
Uzondu Enudeme 43688dc7ed _content/doc: ensure database example code compiles
The CreateOrder example function fails to compile for two reasons:
   A helper function with wrong number of return values (want 2, got 1).
   A short variable declaration (:=) does not declare new variables.

This change resolves the compiler error, allowing the code to compile.

Fixes golang/go#50508

Change-Id: Ife07ae1490969ae67525b9171ab4fcd424409c1c
Reviewed-on: https://go-review.googlesource.com/c/website/+/376974
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-24 17:48:49 +00:00
Will Hawkins a1d570eea4 _content/doc: update review command access
The UI in Gerrit has changed slightly since the contribution documentation was initially written. The new UI has a slightly different means of accessing commands that will allow users to import a CL.

Change-Id: I82c7fc08b70e1afe2db52c313517ab38a1c9016a
Reviewed-on: https://go-review.googlesource.com/c/website/+/478995
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-03-24 17:46:53 +00:00
Ian Lance Taylor 710879a47f doc/install/gccgo: update for GCC 12 and 13
Fixes golang/go#59143

Change-Id: I15f04244f3eda0292c6895fd2c2e816c86183ac7
Reviewed-on: https://go-review.googlesource.com/c/website/+/477875
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-03-20 20:35:00 +00:00
Rajiv Singh e74720e629 _content/doc: Missing "the" in sentence
Fixes: https://github.com/golang/go/issues/58991

Change-Id: I1b40b5b8641ca5cd3ce17195b167c24ecfca8124
GitHub-Last-Rev: 8c57894815
GitHub-Pull-Request: golang/website#211
Reviewed-on: https://go-review.googlesource.com/c/website/+/475775
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-03-17 02:19:47 +00:00
Valentin Deleplace b0bb140f79 _content: add high-res favicon
Fixes golang/go#57899

Change-Id: I66d6477f7d595229443b45230202957193114047
Reviewed-on: https://go-review.googlesource.com/c/website/+/476975
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2023-03-16 15:58:34 +00:00
Frederick Mixell 3c15923231 _content: Why Go/Solutions routing update
- Update links: solutions#case-studies => solutions/case-studies.
- Update links: solutions#use-cases    => solutions/use-cases.
- Adds blank markdown files as place holders for these pages.
- Removes js for tabbing because it's no longer used.
- Convert solutions index page into directory page (no design).
- Add old slider to case studies page so it isn't missing from a deploy

Screenshot: https://drive.google.com/file/d/1FWC_d6SUqPZ0UQfETCyvOjcvEUCI4KGA/view?usp=sharing

Change-Id: If9e2f866c5e3252cdd943068d212f0264f01b1e5
Reviewed-on: https://go-review.googlesource.com/c/website/+/436335
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-03-13 17:03:14 +00:00
Oleksandr Redko 42e3b47265 _content/blog: fix issues in test coverage blog post
- Fix typo in GitHub.
- Remove duplicated word.
- Code blocks must be indented with TAB to render correctly.

Change-Id: I71b6962aab1379ceaab71b8747d1457337a2111c
Reviewed-on: https://go-review.googlesource.com/c/website/+/474876
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2023-03-11 12:46:05 +00:00
Oleksandr Redko e373aeebc5 all: correct typo in GitHub
Change-Id: I21ad8a30bcfaaf7ea02b489a3cf10f8a01351b70
Reviewed-on: https://go-review.googlesource.com/c/website/+/474875
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-10 19:59:45 +00:00
Oleksandr Redko c52c517351 _content/blog: fix typo
Change-Id: Id5d5b34dbad33ee3c669b0aef9dad738ae9dc99e
Reviewed-on: https://go-review.googlesource.com/c/website/+/474076
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-03-10 19:58:33 +00:00
Ian Lance Taylor 7c7b7456ef doc/go1.20: mention that calling T.Run from T.Cleanup will panic
For golang/go#48515

Change-Id: I1c616144a58e92fe4022d0e86f4208d68dcce816
Reviewed-on: https://go-review.googlesource.com/c/website/+/475215
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
2023-03-10 16:08:50 +00:00
Carlos Amedee 94b96fa4bb _content/blog: fix a typo in the integration test coverage post
Fixes golang/go#58951

Change-Id: Ie2775a049d65b8db89f954be880a3c57a0dbd872
Reviewed-on: https://go-review.googlesource.com/c/website/+/474957
Run-TryBot: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
2023-03-09 22:42:06 +00:00
Frederick Mixell e5a0b2f987 _content: Why Go - new cards
New cards from the Why Go designs.

- Adds new card from design to Use Cases and Case Studies.
- Slider omitted because it's redesign will be in another cr.

Screenshot:(Use Cases)
https://drive.google.com/file/d/1XZOmbLkzTCIriGuivAyAeI-HhOReDOjJ/view?usp=sharing

Screenshot: (Case Studies)
https://drive.google.com/file/d/1qiCCpARiqSSvOVcN6nOc5kci61cldAo0/view?usp=sharing

Change-Id: I4d3d465d694dffee455ab3beb3eaba4b1b862629
Reviewed-on: https://go-review.googlesource.com/c/website/+/436336
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-03-09 19:42:24 +00:00
Frederick Mixell 0728710903 _content: Go project page redesign
Converting project page to use the "flat card"

- divides up page into sections to match the design preserving ID's
- removes test in web.txt that looks for release schedule because it was removed.

Video: https://drive.google.com/file/d/1MYcZTeuoDAoEFTWRRVZ93hyLsJSwKi2I/view?usp=sharing

Change-Id: If3df2f050592c5c1ac3a92763404e8eaba3972be
Reviewed-on: https://go-review.googlesource.com/c/website/+/445578
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-09 19:40:47 +00:00
Frederick Mixell d82958ec8a _content: Doc index masonry layout
- converts existing doc index content into html sections
- uses css columns to create css only masonry layout

Video: https://drive.google.com/file/d/1VJ9IEz_mpVDhRXN6KPa7Z_z2oy4623an/view?usp=sharing

Change-Id: Iad7413bad2ad5aaeff9dfc6334f206177508acc4
Reviewed-on: https://go-review.googlesource.com/c/website/+/443698
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-09 19:31:32 +00:00
Frederick Mixell dbe961f9e2 _content: Help page update
- Adds new card style for help page

Screenshot: https://drive.google.com/file/d/11nT6QYZkgoCvvfwRkZVfV1Rrw74VEj9N/view?usp=sharing

Change-Id: Ie104b424ae2d837c9457b666a382f246122ef89e
Reviewed-on: https://go-review.googlesource.com/c/website/+/443695
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-03-09 19:30:29 +00:00
Tatiana Bradley 56e78bd8bc _content/security/vuln: update wording about x/vuln package
Change-Id: Icfa39682fd15401b59766ec1f60636a215371ba7
Reviewed-on: https://go-review.googlesource.com/c/website/+/475055
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-03-09 18:36:47 +00:00
Frederick Mixell e5eb2b8f5b _content: Learn page redesign
- redesign header
- moved sections into cards and reordered page
- Hooked up jump link layout but they're not matching functionality of pkg site yet

Video: https://drive.google.com/file/d/1OAGq_566FX2ASC68fmQMDfNk17dtp3jr/view?usp=sharing

Change-Id: I7224840e8316909b98a97cf876813f111621d2a7
Reviewed-on: https://go-review.googlesource.com/c/website/+/445579
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-03-09 17:11:53 +00:00
Robert Griesemer 99c923a06b _content/blog: remove duplicate title in coverage blog post
Change-Id: I7a8280a2b391827abe987dbedeec291f8d20ba73
Reviewed-on: https://go-review.googlesource.com/c/website/+/474755
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-08 23:21:42 +00:00
Than McIntosh 9cb23231dc _content/blog: add integration test code coverage blog post
Add blog post on code coverage for integration tests.

Change-Id: I01cbdb1c242e45d33b6653fc6ac5ace4f1faa691
Reviewed-on: https://go-review.googlesource.com/c/website/+/474115
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
2023-03-08 18:42:43 +00:00
Ian Lance Taylor 04b0c86a1c doc/go1.20: mention -lresolv requirement for c-archive on macOS
For golang/go#58159

Change-Id: I4099bba337acdb82e61cddcf099aa4c1c464d387
Reviewed-on: https://go-review.googlesource.com/c/website/+/470856
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-03-02 03:32:16 +00:00
Eli Bendersky 0c70505c4f _content: fix StackOverflow link in the menu
The StackOverflow Go community is no longer active; replace by a link to
the [go] discussion tag.

Change-Id: I1435ff1df739717f30594e583412ecf587b848c2
Reviewed-on: https://go-review.googlesource.com/c/website/+/470815
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Eli Bendersky‎ <eliben@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Eli Bendersky‎ <eliben@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2023-03-01 17:39:43 +00:00
Dmitri Shuralyov 034fa41514 _content/doc: update GOROOT/test invocation in contribution guide
The top-level test suite in $GOROOT/test is implemented as a normal
go test in the new internal/testenv package as of CL 463276. Update
the contribution guide accordingly.

Updates golang/go#56844.

Change-Id: I73bfa8e4fc7c35f63efdde42ddf3552b5a518136
Reviewed-on: https://go-review.googlesource.com/c/website/+/471895
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
2023-02-28 19:44:45 +00:00
Daniel Frederick Crisman 8bb4a56901 tour: added missing word "methods"
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.

Fixes golang/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>
2023-02-27 11:50:42 +00:00
M Hickford 70f9a532c4 _content/doc/contribute: clarify that all API changes are significant
Text verbatim from 4fe2f9757f

Change-Id: I726960bac9f5e4e080bcb0cdadcfe7a58422b15d
GitHub-Last-Rev: e13cf8a9fc
GitHub-Pull-Request: golang/website#198
Reviewed-on: https://go-review.googlesource.com/c/website/+/471397
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Matt Hickford <matt.hickford@gmail.com>
Reviewed-by: Matthew Hickford <hickford@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-02-27 07:31:09 +00:00
Roland Shoemaker cd7ff650d3 _content/security: update pre-announcement block
To include that we put CVE IDs in the pre-announcement email.

Updates golang/go#56547

Change-Id: I113873339c93e8a33e63d15a471b800beb09e390
Reviewed-on: https://go-review.googlesource.com/c/website/+/470757
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-23 22:27:06 +00:00
Jamal Carvalho 9033d87416 _content/doc/install: fix broken link to system requirements
Fixes golang/go#58464.

Change-Id: Id2477d488046977e2d1554f577b4c18f988d6583
Reviewed-on: https://go-review.googlesource.com/c/website/+/469975
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-02-23 15:59:13 +00:00
Daniel Frederick Crisman 2e65c647b0 tour: no deterministic note as 1.20 does rand seed
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.

Fixes golang/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>
2023-02-22 16:47:37 +00:00
Warren Fernandes f2bd60d535 _content/doc/go1.20: add release note for new cookie.valid behavior
Fixes #58485

Add a release note documenting that Cookie.Valid ignores the
Cookie.Expires field when empty.

Change-Id: Ia0138dc2252c309c36ff774e30e4aa9a874bf1e5
GitHub-Last-Rev: 6355670ad0
GitHub-Pull-Request: golang/website#193
Reviewed-on: https://go-review.googlesource.com/c/website/+/468716
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-02-22 15:48:26 +00:00
Jamal Carvalho 44086c137c _content: fix duplicate github icon
Fixes golang/go#58555

Change-Id: I36788aabbe09c4e5f343ae88d94392c202ff144f
Reviewed-on: https://go-review.googlesource.com/c/website/+/469815
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-02-21 19:19:35 +00:00
Frederick Mixell e0f28dd77b _content: All releases page update
This update is to the /dl page design.

- Page title updated
- Table updated to reflect design
- spacing/color adjustments to match design

Video: https://drive.google.com/file/d/1Yhov_7v4h6vS9lQlQuuVqF3T3M-dXQnU/view?usp=sharing

Change-Id: Ifc7d8ad64b99e5ec44f4b2be657082ef20f30fa5
Reviewed-on: https://go-review.googlesource.com/c/website/+/442515
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-02-21 15:50:18 +00:00
ariathaker 6d3537d059 _content/doc/tutorial: update fuzzing tutorial
Update the fuzzing tutorial based on results from the UXR study to:

-Link to further documentation
-Add explanation of -fuzztime and other testing flags
-Explain fuzzing output terms like "new interesting"
-Improved clarity on some tutorial steps re: copy/pasting

Change-Id: Ia781407130b87d3a79e2bbcc912ad7fa24028056
Reviewed-on: https://go-review.googlesource.com/c/website/+/464020
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alice Merrick <amerrick@google.com>
2023-02-17 18:44:29 +00:00
Michael Pratt 07cbbd682a _content/blog/comparable: clean up useless {{raw}}
The template isn't doing anything here, we can just use HTML directly.

Change-Id: I9aef23bc6a920c57a983fa87e9147e9ea5ec4cb1
Reviewed-on: https://go-review.googlesource.com/c/website/+/469097
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-17 17:28:47 +00:00
Michael Pratt e752e375eb _content/blog/comparable: bypass < encoding
Markdown conversion converts < to &amp;lt;, but
golang.org/x/website/cmd/golangorg TestAll rejects pages containing
&amp;lt;. Manually override this conversion with {{raw}}.

Change-Id: I25756a52d69ac72e276741e812f8d30b9f9c5c8d
Reviewed-on: https://go-review.googlesource.com/c/website/+/469096
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-17 17:18:55 +00:00
Robert Griesemer dea5ec8226 _content/blog: add blog post on comparable constraint
Change-Id: I542154bb75d5685124f4cd901884cf0391bf310d
Reviewed-on: https://go-review.googlesource.com/c/website/+/467115
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
2023-02-17 16:37:43 +00:00
Michael Pratt 3fc36b61c2 _content/doc/pgo: correct sample index requirements
The current requirement is completely wrong. In 1.20, we unconditionally
look at sample index 1, which should either be samples/count or
cpu/nanoseconds (they have the same semantic meaning).

For golang/go#58292 (hopefully in 1.20.1), we are correcting this to
pick the first index. I am omitting describing this slight version
discrepancy due to lack of space, but I could be convinced to add it.

For golang/go#58292

Change-Id: I24bb125db50a254b18c3f5f21db0c7fdc2125229
Reviewed-on: https://go-review.googlesource.com/c/website/+/466515
Reviewed-by: Frederic Branczyk <fbranczyk@gmail.com>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-15 21:42:12 +00:00
Frederick Mixell 78a220a4fa _content: Breadcrumbs added to children pages.
Added to all doc children page with doclayout.
Added to Why Go pages.
Added to Security pages.

Video of Changes:
https://drive.google.com/file/d/1wX9e9K9H9wPTaLLQHh15-cWzMTMRr9DO/view?usp=sharing

Change-Id: I0fbf8e925e7fa357762d8eebd2bf13d561d49d86
Reviewed-on: https://go-review.googlesource.com/c/website/+/432775
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-02-14 18:22:49 +00:00
Frederick Mixell 6e1dd4f006 _content: qa updates play page
- adds dark mode functionality for the community menu
- adds 'overflow: auto;' over 'overflow: scroll;' for play page about modal to prevent ghost scroll bars on certain devices.

Change-Id: I175f21aa06b47bd590010551e8bd3757993bea96
Reviewed-on: https://go-review.googlesource.com/c/website/+/453795
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-14 17:07:04 +00:00
Tatiana Bradley d7a0e24020 _content/security/vuln: improve documentation on escaped module paths
Fixes incorrect reference to "EncodePath" and makes description of
each endpoint more precise.

Change-Id: I1af91dff12a626a75184ce8f0d7bc3e648ae1333
Reviewed-on: https://go-review.googlesource.com/c/website/+/467775
Reviewed-by: Tim King <taking@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
2023-02-13 20:41:52 +00:00
Ankit Verma 8a2a291fba _content/css: fix content aside section overlapping with footer
Fixes golang/go#58134

Change-Id: Ie2ef4d2b32d2f9eb834e0d7f909efecda4c08331
GitHub-Last-Rev: 8914d0f4f3
GitHub-Pull-Request: golang/website#190
Reviewed-on: https://go-review.googlesource.com/c/website/+/464015
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-02-10 15:16:31 +00:00
Michael Pratt a1c9012b54 _content/blog: add PGO preview blog post
Change-Id: Iba285a7d5fabcc69c787c14445a69213b2bd0672
Reviewed-on: https://go-review.googlesource.com/c/website/+/466136
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-08 16:54:15 +00:00
blackfalcon 1d3e58623b _content/doc: fix parseVersionNumber to handle versions without patch
As of go1.20, when visiting https://go.dev/doc/install, the download button shows no version and with text: `Download ()`.

Previously the function expected the argument `string` being passed as in the form: `go1.17.3.linux-amd64.tar.gz`.
with go1.20 the file name becomes `go1.20.linux-amd64.tar.gz` with no patch number.

This merge request fix the regex used to parse the version number and return the intended version of `1.20`

Change-Id: I2fd109a030ed940cd8cd4d5e8924f026f5b8f4be
GitHub-Last-Rev: 68fb7856ee
GitHub-Pull-Request: golang/website#192
Reviewed-on: https://go-review.googlesource.com/c/website/+/465415
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-02-07 22:09:57 +00:00
stepbystep2 c0d7b93e00 _content/solutions/webdev.md: fix URL of "Using Go in government" link
Change-Id: Ia27e18e5dc140b6da27cf78c8c82991e92962ae3
GitHub-Last-Rev: 18beb5160a
GitHub-Pull-Request: golang/website#189
Reviewed-on: https://go-review.googlesource.com/c/website/+/453135
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-02-03 18:20:29 +00:00
Sean Liao c072c41b7c _content: replace opentracing with opentelemetry
OpenTracing has been deprecated/archived per their github/website.
Replace with the recommended replacement of OpenTelemetry.

Fixes golang/go#53036

Change-Id: Ic7106484ab9ca53e6f199eb48d275dd81ab0d63a
Reviewed-on: https://go-review.googlesource.com/c/website/+/421894
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
2023-02-03 18:20:11 +00:00
Sean Liao d7454c2ca8 _content/doc/modules: fix typos
Fixes golang/go#50291

Change-Id: Id6bec449991de4ca0fb075ab534652b23266ee93
Reviewed-on: https://go-review.googlesource.com/c/website/+/373854
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: hopehook <hopehook@golangcn.org>
Run-TryBot: hopehook <hopehook@golangcn.org>
2023-02-02 21:55:24 +00:00
Vladimir Varankin 60ed43b1ad _content/doc/go1.20: fix reference to mutex block time metric
Refer to https://pkg.go.dev/runtime/metrics#hdr-Supported_metrics for the correct metric name

Change-Id: I7d29ddcd0bbfc4333a4fe217dc788c090c45a001
GitHub-Last-Rev: abf032f758
GitHub-Pull-Request: golang/website#191
Reviewed-on: https://go-review.googlesource.com/c/website/+/464755
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
2023-02-02 15:57:15 +00:00
Michael Anthony Knyszek db2fdac311 _content/doc: remove strings.Clone from Go 1.20 release notes.
bytes.Clone was added in Go 1.20, but strings.Clone was added in Go
1.18. The extra line seems to be a copy-paste error.

Fixes golang/go#58234.

Change-Id: I31194e54485e1f081b923544d107cc3fe851303c
Reviewed-on: https://go-review.googlesource.com/c/website/+/464775
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
2023-02-02 15:26:38 +00:00
Robert Griesemer d923af4f56 _content/blog: fix link
Change-Id: Ibba143ab2f91f76832d2c3a37f216f5cfc443ac6
Reviewed-on: https://go-review.googlesource.com/c/website/+/464021
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
2023-02-01 21:21:40 +00:00
Michael Pratt 30aebd78d9 _content/doc/go1.20: add link to PGO user guide
For golang/go#55022.

Change-Id: Ib2420c000dd0d6e7e272e217473e4ec192d4c730
Reviewed-on: https://go-review.googlesource.com/c/website/+/464477
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-01 20:48:25 +00:00
Robert Griesemer 1e63771f6e _content/blog: add go1.20
Announce Go 1.20 (to be posted with the release, planned for
beginning of February).

Change-Id: I7c8f057157357a1eae57915dda30abc68a99e915
Reviewed-on: https://go-review.googlesource.com/c/website/+/463103
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-02-01 20:10:24 +00:00
Michael Anthony Knyszek fb52c16fa6 internal/history: add Go 1.20, remove release notes draft notice
Fixes golang/go#54202.

Change-Id: I6043b8af0e3de7e46e5ab0e9dafe9c34cbd18236
Reviewed-on: https://go-review.googlesource.com/c/website/+/464175
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2023-02-01 18:35:18 +00:00
Valentin Deleplace 2fd05fd33b _content/project: fix link to the security policy
Fixes golang/go#57971

Change-Id: I12ee5231d6c6fadef1e82574e8d36beb8f1843c5
Reviewed-on: https://go-review.googlesource.com/c/website/+/463235
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2023-02-01 16:33:10 +00:00
Matthew Dempsky ea7ac3d37a _content/doc: update release notes about anonymous interface cycles
Elaborate on what this means, to help avoid users unnecessarily
worrying about whether their code will be affected.

Updates golang/go#56103.

Change-Id: Iab6eeb836e30905e507681fcc9ada94e9a3052dd
Reviewed-on: https://go-review.googlesource.com/c/website/+/464196
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
2023-02-01 01:02:00 +00:00
Michael Anthony Knyszek d4d615d895 _content/doc: add Go 1.20 release notes
Copied from the main Go repo at CL 462286.
Deleted there in CL 464055.

For golang/go#54202.

Change-Id: I9effbceb28325c4d0394b6931b5ba48f050ea380
Reviewed-on: https://go-review.googlesource.com/c/website/+/464075
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
2023-01-30 21:10:06 +00:00
Michael Pratt d3473f8251 _content/doc: add PGO usage guide
Add a primary documentation page for PGO, describing both the mechanics
of using PGO as well as best practices around collecting profiles.

Fixes golang/go#55022.

Change-Id: Icca1673ce54a091a5c7329b999e9b36d6bfea538
Reviewed-on: https://go-review.googlesource.com/c/website/+/463684
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-01-30 18:02:50 +00:00
Frederick Mixell 9abce52941 _content: Docs - linking update
- 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>
2023-01-30 14:28:10 +00:00
Hana (Hyang-Ah) Kim 381c3ae6b2 _content/ref: mention '-reuse' flag in go mod download section
The section was copied from `go help mod download`.

Change-Id: Icca24cf1cbd4051332df21843ffd2ff818d77d2d
Reviewed-on: https://go-review.googlesource.com/c/website/+/463875
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-01-27 22:38:43 +00:00
Valentin Deleplace 5f0cede926 _content/security/fuzz: fix transparent image for dark theme
Fixes golang/go#54954

Change-Id: Ie2db42fe32e791111486cbbe8f3a392934f4a174
Reviewed-on: https://go-review.googlesource.com/c/website/+/454875
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
2023-01-24 15:30:23 +00:00
Alice Merrick 0258b1acda _content/blog/survey2023-q1: survey announcement
Announce the 2023 January edition of the Go Developer Survey.

Change-Id: If632432074d33c5682d7fc04a1b5149a0d2965bd
Reviewed-on: https://go-review.googlesource.com/c/website/+/461637
TryBot-Bypass: Todd Kulesza <tkulesza@google.com>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
Reviewed-by: Cameron Balahan <cbalahan@google.com>
Reviewed-by: Alice Merrick <amerrick@google.com>
2023-01-18 17:30:06 +00:00
Frederick Mixell bf6873ed19 _content: Revert font to match site style
Reverting the new text styles for download page because text styles are global.

Reference: https://go-review.googlesource.com/c/website/+/441855/comment/4c6c0465_65e895ec/

Staging: https://change-461796-dot-goog-godev-qa.uc.r.appspot.com/go.dev/doc/install
! This staging doesn't have access to /dl functionality so there isn't text for the download button.

Change-Id: I132c56ec67a93f91a4a557703f6d27a7e6875024
Reviewed-on: https://go-review.googlesource.com/c/website/+/461796
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-01-13 20:56:53 +00:00
Zvonimir Pavlinovic 8abd7e4a50 _content/blog/vuln: point users to govulncheck json flag
This is done instead of pointing to vulncheck, decision on which still
has to be made.

Change-Id: I0ea010c5a9ee7107e8567ebf7b9b0b3371d5aca8
Reviewed-on: https://go-review.googlesource.com/c/website/+/459355
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-01-04 21:29:09 +00:00
Zvonimir Pavlinovic 7257a64727 _content/blog/vuln: provide installation details for govulncheck
Fixes golang/go#57412

Change-Id: Id679631712b177c82f2ff2c15d141204e5ce47c5
Reviewed-on: https://go-review.googlesource.com/c/website/+/459255
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
2023-01-04 21:28:19 +00:00
Tatiana Bradley fc66a3dae1 _content/security: update PRIVATE track examples
Updates PRIVATE track description in the security policy
to include newer examples that follow the current process.

For golang/go#56485

Change-Id: Ie4a7a16535b5496dc472d4094ac945c569c4506d
Reviewed-on: https://go-review.googlesource.com/c/website/+/460055
Auto-Submit: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-01-03 16:05:46 +00:00
Frederick Mixell 7a2ed92457 _content: Sidebar template prop
- Adds desktop only sidebar options
- Turn on any doc template with "Sidebar" prop
- currently 2 sidebar choices "faq" or "bug"

Added to the following pages
- /doc/install
- /doc/faq
- /help

Video: https://drive.google.com/file/d/1MmZSvdqcmREeB5ZU0YXwuilFDsusmne1/view?usp=sharing

Change-Id: Ie106fdfeac464752789319aa87ffe0144dbc5c88
Reviewed-on: https://go-review.googlesource.com/c/website/+/441857
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2022-12-28 16:21:58 +00:00
Suzy Mueller e686abea87 _content/blog: fix broken images in survey 2022 results
A couple of images were not displaying correctly in the
2022 survey results for q2.

Fixes golang/go#57456

Change-Id: I93bac1eea6428d5cd0b0f45d13ca096637f06e9a
Reviewed-on: https://go-review.googlesource.com/c/website/+/459436
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-27 17:17:18 +00:00
Frederik Zipp 004bc941d6 _content/blog: fix broken link to design document in why-generics
The Markdown link to the design document contains an invalid
line break between the description and the URL, causing the
link to be rendered incorrectly.

Also mention that generics are referred to as "type parameters"
in the spec.

Fixes golang/go#57421

Change-Id: I2acef0af0fa54700768f00d0103f6ea161c87c39
Reviewed-on: https://go-review.googlesource.com/c/website/+/458795
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
2022-12-22 00:20:05 +00:00
Frederick Mixell 1272e65ac9 _content: Download install redesign
- Updates /doc/install design
- Updates /dl/ button style

Screenshot Buttons: https://drive.google.com/file/d/1zfuQRuYxlvb1ej0LS5bCituFX91scQA1/view?usp=sharing

Screenshot Doc Install: https://drive.google.com/file/d/1lhLf8DXq93F-u20i54eH9-CS5CzF9X_-/view?usp=sharing

Change-Id: I7ced9f5cdd6540382d3df23b87caadfd1c78cb1d
Reviewed-on: https://go-review.googlesource.com/c/website/+/441855
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
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>
2022-12-21 13:33:19 +00:00
Anderson Queiroz cc976e8098 _content/doc: fix the contribute guide's query for issues on GitHub
It add 'go.dev/cl' on the GitHub issue tracker queries, and their links,
for issues with and without a suggested change.

Fixes golang/go#54546

Change-Id: I5e6852f39181e4169af0a67a409f11581c201138
Reviewed-on: https://go-review.googlesource.com/c/website/+/424974
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-12-16 15:59:47 +00:00
Than McIntosh 5360f253cd _content/testing/coverage: fix typo in reporting section
Fix typo in reporting section ("-i" and "percent" transposed).

Fixes golang/go#57268.

Change-Id: I96c49a1ec6f2ef8f4b07d84e0de4de8dc5c4ea5e
Reviewed-on: https://go-review.googlesource.com/c/website/+/456776
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-13 00:26:29 +00:00
Than McIntosh e35843a5b8 _content/testing/coverage: more minor edits to coverage section
Additional fixes to address comments/suggestions from @eliben.

Change-Id: I99e3c5338eb4f9667835c4e36ba044dd211de5f9
Reviewed-on: https://go-review.googlesource.com/c/website/+/456317
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky‎ <eliben@golang.org>
2022-12-12 13:51:02 +00:00
Than McIntosh 9376d45ab3 _content/testing/coverage: add 'frequently asked questions' section
Add an FAQ section, as well as a main table of contents. Fix
a few minor formatting errors.

Change-Id: I553bfc11ea9e3abc1cad53d2f8a9832b9f2f68e9
Reviewed-on: https://go-review.googlesource.com/c/website/+/456058
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2022-12-09 17:07:10 +00:00
Than McIntosh b31b7a9e77 _content/testing/coverage: minor fixes to section on integration test coverage
Fix a couple of typos, reword a few paragraphs.

Change-Id: I3c9b3e691ff0c760a64966d5453dc635850d8f41
Reviewed-on: https://go-review.googlesource.com/c/website/+/455995
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
2022-12-07 22:07:04 +00:00
Julie Qiu 929e34875b _content/security: fix typo
Issue 43786 is fixed to correctly refer to crypto/elliptic.

Change-Id: Id2c17b54de3c6b6eb9dff5d9e54cc4e70b54fa48
Reviewed-on: https://go-review.googlesource.com/c/website/+/455495
Auto-Submit: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-07 16:10:43 +00:00
Than McIntosh b24265ef95 _content: add section on integration test code coverage
Add a landing page with material on how to gather coverage
profiles from integration tests.

Updates golang/go#51430.

Change-Id: I79aed14a3a2f87ed15ed8c603f26dd2b1a1fb508
Reviewed-on: https://go-review.googlesource.com/c/website/+/455496
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
2022-12-07 15:53:18 +00:00
Frederick Mixell 6951227623 _content: Copy code snippets
- Updates pre style for doc articles
- Adds js for copying code snippets
- .CopyPaste class with button to work with the js

Darkmode Screenshot: https://drive.google.com/file/d/1plTsw3rd_KoeNkjwEB19uOGZtr5DlHAT/view?usp=sharing

Video: https://drive.google.com/file/d/1PuPiSVbKZsOSadW-iVYI-aNmiiXpPn8B/view?usp=sharing

Change-Id: I2c244c6dd8e73b13c7ee8554d35919d0eb3e18c6
Reviewed-on: https://go-review.googlesource.com/c/website/+/441856
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-12-05 14:51:44 +00:00
Ian Lance Taylor 05f06604c6 _content/doc/articles/race_detector: cgo requires a C compiler
Fixes golang/go#56937

Change-Id: Ia9aca2c8f57e5f5641f40712df00d932578d13a5
Reviewed-on: https://go-review.googlesource.com/c/website/+/453435
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
2022-11-28 20:20:15 +00:00
Russ Cox 5934f13cc5 _content: change Go headline on go.dev
The old one (“Build fast, reliable, and efficient software at scale”)
is missing "simple" and "secure"; also "fast" and "efficient" are synonyms.

Change-Id: I50e6bb524e5095d88b4b71f644c3653da98712ff
Reviewed-on: https://go-review.googlesource.com/c/website/+/451297
Reviewed-by: Sameer Ajmani <sameer@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
2022-11-18 18:55:21 +00:00
Jamal Carvalho 859573a54b _content/css: invert github css for dark theme
Fixes golang/go#56559.

Change-Id: I3f8aa801ad3ef97686903dd1019f5df2f2ed9e3d
Reviewed-on: https://go-review.googlesource.com/c/website/+/450416
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2022-11-15 20:11:29 +00:00
Russ Cox a7a6fd0f14 _content/doc/contribute: say GOROOT instead of GODIR
There's not much point to having a second name for this concept.
Everything else in the Go world calls it GOROOT.
This text can too.

Change-Id: Idb6082fbb6b9f6b133af8caeb4d0c071cba41fbc
Reviewed-on: https://go-review.googlesource.com/c/website/+/449455
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-11-10 18:44:29 +00:00
Russ Cox ff904cce94 _content/blog: post 13years
Post about Go's 13th birthday.

Also tweak the css to not background color fixed-width font in paragraphs.
Coloring whole <pre> blocks is fine, but coloring font changes is
typographically suspect and especially doesn't work well with our
convention in this web site of setting spaces inside phrases like "go test"
with variable-width spaces: <code>go</code> <code>test</code>.
It looks terrible to have a background highlight on that.

Change-Id: Ibbb3ad782d05f107fda572c269c24ef82e937d61
Reviewed-on: https://go-review.googlesource.com/c/website/+/449456
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-10 16:46:01 +00:00
Jamal Carvalho 0bdc4717c2 _content/css: improve playground page margins
Fixes golang/go#56518.

Change-Id: Ia9a55046873961b53b031b3ccbf764041ac29e5a
Reviewed-on: https://go-review.googlesource.com/c/website/+/447998
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-07 17:58:39 +00:00
Russ Cox 515b2069ab _content: update from CC-BY-3.0 to CC-BY-4.0 across the board
CC-BY-3.0 was shiny and new back in 2009, but CC-BY-4.0 is
generally preferred now. Update our CC-BY uses to CC-BY-4.0.

Not sure how we ended up with both /doc/copyright and /copyright,
but redirect /doc/copyright to /copyright.

Google lawyers signed off on the overall CC-BY-4.0 update
and Renee French signed off on the update of the gopher license.

Change-Id: Ica8f6d51775623eb38ac0a9cba18dbc0a82faea4
Reviewed-on: https://go-review.googlesource.com/c/website/+/447156
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-02 20:14:38 +00:00
Russ Cox de15dbe30d _content/doc/comment: document form of directive comments
Fixes golang/go#43776.

Change-Id: I3e18dbe5dfb0bca96a16203efd4c2a92636cf412
Reviewed-on: https://go-review.googlesource.com/c/website/+/442516
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-11-02 14:30:32 +00:00
Conor Britain 3cbdc17ec9 _content: update header nav with dropdowns and subnavs
Adds dropdown menus as well as fixed open/closed states. Adds submenus
to mobile header nav.

Change-Id: I0fdf6fd81008857b1ed28f0a8388de8e004eb722
Reviewed-on: https://go-review.googlesource.com/c/website/+/435522
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-10-31 17:00:13 +00:00
ryicoh 2a33458910 _content/play.tmpl: remove unnecessary spaces
Change-Id: I616f2afe682215e7a0cf353dafd7aa930bffd1fb
GitHub-Last-Rev: 42fd1858b0
GitHub-Pull-Request: golang/website#180
Reviewed-on: https://go-review.googlesource.com/c/website/+/425814
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-10-24 17:50:24 +00:00
Hana (Hyang-Ah) Kim e3727af0b8 _content/ref/mod.md: add more retraction examples
Borrowed from
https://seankhliao.com/blog/12021-10-17-go-mod-retract/

Updates golang/go#55834.

Change-Id: I10883a74f16caad6b62937778b09286cfd2d76d5
Reviewed-on: https://go-review.googlesource.com/c/website/+/443400
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-10-21 16:53:05 +00:00
Sean Liao 37b0060c55 _content/ref: update module fields
Fixes golang/go#51163

Change-Id: If2390fba29786a97f789f99434ea282849264ade
Reviewed-on: https://go-review.googlesource.com/c/website/+/394818
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
2022-10-14 22:08:14 +00:00
Roger Peppe ba3d5cf5ff _content/{ref,doc}: remove -d from go get examples
The `-d` flag to `go get` in module mode is a no-op, as witness
the following comment from the code:

	// TODO(#43684): in the future (Go 1.20), warn that -d is a no-op.
	if !*getD {
		base.Fatalf("go: -d flag may not be disabled")
	}

Thus it's misleading, so remove it.

Change-Id: I0cf61d61b561d010d00f6044a5c07ca8f3bd117f
Reviewed-on: https://go-review.googlesource.com/c/website/+/439695
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-10-06 23:34:32 +00:00
Alberto Bertogli 6438748656 _content/ref: add missing `)` in "go.work files" documentation
Change-Id: I8a1f69214f4738bb4bab49200780d997a2948ce8
Reviewed-on: https://go-review.googlesource.com/c/website/+/431615
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
2022-10-06 14:23:57 +00:00
Michael Anthony Knyszek aff3925441 _content/blog: add Go 1.19 runtime blog post
Change-Id: Ie8f532ba0fbafbb8e2984552aadfe418d5d40a4d
Reviewed-on: https://go-review.googlesource.com/c/website/+/425182
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-26 18:23:45 +00:00
Jamal Carvalho 6f71e8c807 _content/js: adjust HaTS sample rate, disable on playground
Change-Id: Ia49852d76c03dd79f1904df415e849a0af3dd4d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/432875
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2022-09-22 17:52:25 +00:00
Zeke Lu 663b23d156 _content/doc/play: use the Nilakantha Series to compute pi
The Nilakantha Series converge more quickly comparing to the
Gregory-Leibniz Series.

Fixes golang/go#53598.

Change-Id: I9f2bbdde403b302d652171a76dddc623d2291712
GitHub-Last-Rev: 81327fe84c
GitHub-Pull-Request: golang/website#165
Reviewed-on: https://go-review.googlesource.com/c/website/+/414826
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Galvin Gao <galvingaoper@gmail.com>
2022-09-22 14:05:23 +00:00
Todd Kulesza 4e84c07618 _content/solutions: remove dead link
Target removed their Go case study, so we should remove our link to it.

Fixes golang/go#49960.

Change-Id: Ib8b3a1505fd4e8059da96d18c152e928722b0ce1
Reviewed-on: https://go-review.googlesource.com/c/website/+/432455
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-21 18:19:23 +00:00
Jang Rush cd84252011 _content/doc/comment: capitalization inconsistencies of unicode
In "unicode right quote", the capitalization of the word Unicode was inconsistent with other occurrences of the document.

Change-Id: Ib2c4a60e8ce39c81a1567078e9fc555c7b9dfbb2
GitHub-Last-Rev: 50238f14bf
GitHub-Pull-Request: golang/website#184
Reviewed-on: https://go-review.googlesource.com/c/website/+/431197
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2022-09-19 17:05:17 +00:00
cui fliter 9bc73d972c _content: fix some frontend label bugs
Change-Id: I68b0601ec156257ede7d65cc253f5c4f0ec7c69d
GitHub-Last-Rev: 1ccde8a810
GitHub-Pull-Request: golang/website#185
Reviewed-on: https://go-review.googlesource.com/c/website/+/431555
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
2022-09-19 15:22:08 +00:00
cui fliter 12004075ca _content: fix ineffective font colors
This string expected the font color to be dark blue, but it didn't take effect.

Change-Id: I213ade6439da87d426f4ba5e20cb06f768da0bed
GitHub-Last-Rev: 9ecbb6e818
GitHub-Pull-Request: golang/website#183
Reviewed-on: https://go-review.googlesource.com/c/website/+/431195
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
2022-09-19 15:21:25 +00:00
Tatiana Bradley dc3bd55b37 _content/security/vuln: fix vuln endpoint in database doc and add example
Change-Id: I650ab0394f14a4cb71ba0d587222373c3c4741d7
Reviewed-on: https://go-review.googlesource.com/c/website/+/431416
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-16 18:54:35 +00:00
Tatiana Bradley 5526d80c26 _content/security/vuln: move CNA page overview to index
The CNA is related to the database but is also a separate entity, and
makes more sense to be linked to from the main landing page.

Change-Id: I8f392252831b5a662eedbfda78ba2256cea828ad
Reviewed-on: https://go-review.googlesource.com/c/website/+/431415
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-16 18:53:46 +00:00
Jamal Carvalho d31a06e2b1 _content,cmd: remove events section from homepage and get started page
The upcoming changes to the navbar will feature the meetup events
page. We can remove these sections instead of rebuilding the
integration with the GraphQL API.

Fixes golang/go#54796.

Change-Id: Ic29d9031f9359714d0b90fafbaff289a1ae9c877
Reviewed-on: https://go-review.googlesource.com/c/website/+/429577
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2022-09-10 00:07:36 +00:00
Todd Kulesza 6de9b73a18 _content/blog: add 2022 survey results
Share the results of our 2022 Q2 Go Developer Survey.

Change-Id: I67399e94cba494f504f6642dde9b3a3b3793f993
Reviewed-on: https://go-review.googlesource.com/c/website/+/426534
Reviewed-by: Cameron Balahan <cbalahan@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-09-08 15:35:28 +00:00
Julie Qiu 7a72bbb9af _content/security/vuln: fix ellipsis
Change-Id: I051c5123754b071ad1058eaa790bb4c867af0752
Reviewed-on: https://go-review.googlesource.com/c/website/+/428616
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-06 15:25:54 +00:00
Julie Qiu 0e9bd2baa1 _content/blog: fix ellipsis in vuln.md
Change-Id: I150bbc459a22f95229b5de0d27e584609d38077d
Reviewed-on: https://go-review.googlesource.com/c/website/+/428615
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-06 15:15:08 +00:00
Julie Qiu 177345ddf0 _content/blog: add vuln.md
Change-Id: I1d16c6e3264466712157e28fdaff76c34ec54600
Reviewed-on: https://go-review.googlesource.com/c/website/+/427879
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2022-09-06 14:39:20 +00:00
Julie Qiu 6d6543c16c _content/security/vuln: update wording
* Improve information for contributing and feedback
* Update text for link to Go Security Policy

Change-Id: I5a39849cbaed3a6fdf51001fdffbbd6871590d70
Reviewed-on: https://go-review.googlesource.com/c/website/+/427883
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-06 14:10:21 +00:00
Julie Qiu e185a46da8 _content/security: add back to links for navigation
Also change the title of /security/vuln to "Go Vulnerability Management"
to match other titles, which all start with "Go", on the /security page.

Change-Id: Ifce99ed2d3cad2f3c33daeea058001efed2d2301
Reviewed-on: https://go-review.googlesource.com/c/website/+/427881
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-09-06 14:09:47 +00:00
Julie Qiu f1b952de09 _content/security/vuln: remove unused svg
Also rename vuln_architecture.png -> architecture.png

Change-Id: I3333f5383df0aa284d2d045403c6084d81368e81
Reviewed-on: https://go-review.googlesource.com/c/website/+/427884
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-06 13:53:42 +00:00
Julie Qiu 4d241c02f0 _content/security: update content
Update the security page to remove links from headings and
improve wording for descriptions.

Change-Id: I87e751b9ef9044fb10121004c42e28b20fbddc37
Reviewed-on: https://go-review.googlesource.com/c/website/+/427882
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-09-06 13:37:30 +00:00
Julie Qiu 4929235449 _content/security/fuzz: moved from _content/doc/fuzz
Move all fuzzing content to the /security namespace.

Redirect /doc/fuzz to /security/fuzz.

Change-Id: I26d9e8b2eef5f37e3f31710d3b03673ef9e444db
Reviewed-on: https://go-review.googlesource.com/c/website/+/427880
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-06 13:36:51 +00:00
Jamal Carvalho 1358680b36 _content/security/vuln: remove redundant govulncheck link
Change-Id: Ie12206dc4324c31d03949b04a5704e034e378866
Reviewed-on: https://go-review.googlesource.com/c/website/+/427878
Reviewed-by: Tatiana Bradley <tatiana@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: Julie Qiu <julieqiu@google.com>
2022-09-02 20:03:26 +00:00
Tatiana Bradley 3a07d191d9 _content/security/vuln: update cna.md
Change-Id: I528ad0de45c53290c36f88eac3078a3e513647f7
Reviewed-on: https://go-review.googlesource.com/c/website/+/427877
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-02 17:37:31 +00:00
Jamal Carvalho ff55604715 _content/security: bug bash fixes
Change-Id: I9c2523ff970dc01893662b2b2dae3981202cac91
Reviewed-on: https://go-review.googlesource.com/c/website/+/427876
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-02 17:21:10 +00:00
Julie Qiu 0d0d05c4f7 _content/security/vuln: add getting started info
Change-Id: I5b32ebdbb8464af3c5eac5639ae43c7d5c2853c5
Reviewed-on: https://go-review.googlesource.com/c/website/+/427875
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-02 16:01:29 +00:00
Julie Qiu c0cc19d739 _content/security/vuln: fix wording and link
Change-Id: Ife36c251882686f95a5dcc34906ddf94a859bedd
Reviewed-on: https://go-review.googlesource.com/c/website/+/427874
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-02 14:28:56 +00:00
Tatiana Bradley ca76f435c2 _content/security/vuln: fix typo and broken links in database.md
Change-Id: I8eb859e87a082620c832d4f35ac422163a4d3cfe
Reviewed-on: https://go-review.googlesource.com/c/website/+/427599
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
2022-09-01 22:19:18 +00:00
Tatiana Bradley 2454c0ca3a _content/security/vuln: update database.md
Change-Id: I7f4c74032b37000f8dcb46371b441908c6c92f69
Reviewed-on: https://go-review.googlesource.com/c/website/+/427598
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-09-01 22:04:35 +00:00
Tatiana Bradley 0f8e74b2a5 _content/security/vuln: update link in index.md
Change-Id: I6c518332ccc15ddde797d2cb6d1c07cc08383876
Reviewed-on: https://go-review.googlesource.com/c/website/+/427597
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
2022-09-01 21:53:31 +00:00
Tatiana Bradley 8dad3a21c9 _content/security/vuln: use relative link in cna.md
Change-Id: I4dbd4420a26ca035160c6150ed2499667f4a4aee
Reviewed-on: https://go-review.googlesource.com/c/website/+/427595
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-01 20:12:14 +00:00
Tatiana Bradley cdf61fc48d _content/security/vuln: update index.md
Change-Id: Ie03a5faddd65c5afc1963b1794778199460ccc33
Reviewed-on: https://go-review.googlesource.com/c/website/+/427594
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
2022-09-01 20:12:07 +00:00
Tatiana Bradley ead9100c0a _content/security: update index.md
Change-Id: I00be3d71f1d832d3077c83bbf2f9ef301295bc55
Reviewed-on: https://go-review.googlesource.com/c/website/+/427478
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-01 19:03:54 +00:00
Tatiana Bradley 3c12c817e0 _content/security/vuln: update cna.md
Change-Id: I2f2d1b515e37f8179c25d9a4b6b6470a7a1653ef
Reviewed-on: https://go-review.googlesource.com/c/website/+/427477
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-01 18:12:01 +00:00
Julie Qiu 489a3a1de0 _content/security/vuln: redirect to govulncheck docs
Change-Id: I5fe9c57adf14511fee025b6d0106c535f19403e5
Reviewed-on: https://go-review.googlesource.com/c/website/+/427476
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-09-01 15:25:30 +00:00
Julie Qiu 911390354f _content/security: update content
Change-Id: I96d0f694685208d429d3f09649461b6181e93e45
Reviewed-on: https://go-review.googlesource.com/c/website/+/426839
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-01 03:39:21 +00:00
Julie Qiu afa0866f7a _content/security/vuln: rename api.md to database.md
Change-Id: I22e5a00b88549213e7b24a1412847ea0873ddf47
Reviewed-on: https://go-review.googlesource.com/c/website/+/426837
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2022-08-31 19:32:14 +00:00
Julie Qiu 4dea5cf3c3 _content/security: move links and add redirects
Move all links to their new locations and add redirects for old links.

Change-Id: Ie0c7711a78e8be8917133a02f1ead63ef91c2e1a
Reviewed-on: https://go-review.googlesource.com/c/website/+/426835
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-08-31 14:13:41 +00:00
Mohamed Badawi b17f1df9f1 _content/docs/gc-guide.html: fix same page links
fix linking the same page sections links

Change-Id: Ice1d50cb6c17219323bc4ce978b6b754c2262ce6
GitHub-Last-Rev: 2a86391a06
GitHub-Pull-Request: golang/website#170
Reviewed-on: https://go-review.googlesource.com/c/website/+/420474
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Mohamed Badawi <mooga.cs2009@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
2022-08-30 18:32:16 +00:00
Sean Liao a45e5bbd5d _content: consistently use main module instead of root module
Fixes golang/go#52227

Change-Id: I9b5211a071eb92a8629d8f97c5f3842ae0ec6b37
Reviewed-on: https://go-review.googlesource.com/c/website/+/421895
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: hopehook <hopehook@qq.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: hopehook <hopehook@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-08-26 17:39:38 +00:00
Julie Qiu d43e1e69d8 _content/security/vulndb: add examples
Change-Id: Ic15fd13d9d7b61cfa2e768d6265ffc574bd0f5cf
Reviewed-on: https://go-review.googlesource.com/c/website/+/425374
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-08-24 21:04:02 +00:00
Dan Kortschak 145d0c1d04 _content/doc/gc-guide: fix grammar
Change-Id: Icc2eed9fb6ede34e15757f781e9a4220a1ad426b
Reviewed-on: https://go-review.googlesource.com/c/website/+/417334
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: hopehook <hopehook@qq.com>
Reviewed-by: hopehook <hopehook@qq.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
2022-08-19 21:56:10 +00:00
Jamal Carvalho af51caee77 _content: style theme defaults to system preference
The style theme matches pkg.go.dev behavior in respecting
the users preferred theme set by the system.

Change-Id: I1dab33bda043f054522f88f8e64c539e61934433
Reviewed-on: https://go-review.googlesource.com/c/website/+/424834
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2022-08-19 16:14:45 +00:00
Julie Qiu 0a456fc0ba _content/security/vulndb: add goos/goarch to API docs
Change-Id: Ib0eef10f72f2e4befc367d6045d3cc844ddda9ab
Reviewed-on: https://go-review.googlesource.com/c/website/+/424875
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2022-08-19 13:53:15 +00:00
George Looshch 4a20090bc9 _content/css: fix content auto-scrolling on selection
Fix content auto-scrolling when it’s being selected and the cursor is
less than 4.6875rem from the top border of browser view window

Fixes golang/go#52917

Change-Id: Ibf077bbeb3ba57ee425b1965e9e833ba66d11383
Reviewed-on: https://go-review.googlesource.com/c/website/+/409014
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Zeke Lu <lvzecai@gmail.com>
Reviewed-by: Soham Dongargaonkar <sohamssd@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2022-08-17 19:15:44 +00:00
Julie Qiu 718fe53483 _content/security/vulndb/api: update content
For golang/go#54490

Change-Id: I84459243f30252402ad1494e0dac75ebdab4eae2
Reviewed-on: https://go-review.googlesource.com/c/website/+/424180
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-08-17 13:01:59 +00:00
WANG Xuerui f43facd506 _content/doc/install/source: mention GOARCH=loong64
Fixes golang/go#54350.

Change-Id: Idf290556c7a9f42c42dbdddaeb7f90896aaa5cba
Reviewed-on: https://go-review.googlesource.com/c/website/+/421575
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-08-14 00:42:30 +00:00
WANG Xuerui 50abfb8fe8 _content/doc/install/source: reorder the table of GOOS/GOARCH combinations
In particular, reorder the GOOS=linux entries so that the GOARCH is
sorted in the same order as in the Introduction section.

Change-Id: I3a4753888f023211e9fda77e341462dc3d87d06e
Reviewed-on: https://go-review.googlesource.com/c/website/+/421574
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-08-14 00:17:45 +00:00
Julie Qiu 55e51100fd _content: add link to CNA policy
Change-Id: Ia73a66e50bfd521113470a327814d5bc0f18e737
Reviewed-on: https://go-review.googlesource.com/c/website/+/422755
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-08-11 18:34:01 +00:00
Tatiana Bradley d849247f0e _content/security/vulndb: add instructions for requesting a CVE ID
Change-Id: Id5bbdc7697ace66a77d5e9fbc08eb21b1d3e4c47
Reviewed-on: https://go-review.googlesource.com/c/website/+/422495
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
Auto-Submit: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-08-09 23:58:55 +00:00
Tatiana Bradley 273f207302 _content/doc/devel, internal/history: call out "security" in relevant release notes
The security team found a few release notes that did not contain the
word security but included one or more security fixes. This CL updates
the relevant release notes.

Change-Id: I7cf4aeef65e5328a936c951781cd4f0bd54429d7
Reviewed-on: https://go-review.googlesource.com/c/website/+/421426
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Tatiana Bradley <tatiana@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-08-09 21:50:07 +00:00
Zvonimir Pavlinovic baa74db9e3 content/security/vulncheck: document more limitations
vulncheck currently does not detected vendored vulnerabilities nor it
provides silencing vulnerabilities.

Change-Id: Ic8511e8732147697d738cf9b9e3464cd30dd60d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/421475
Reviewed-by: Julie Qiu <julieqiu@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-08-09 16:57:52 +00:00
Michael Anthony Knyszek 55c29d8858 _content/doc/gc-guide: deemphasize STW collection in GC model
Based on feedback from aktau@google.com, it's more confusing to state it
as part of the model and then take it back later. At this point, it's
not really all that important to anything but the visualization, so this
CL moves the STW assumption to just the description of the
visualizations.

Change-Id: I345ae215e3ff06ad791044e00425472552df8022
Reviewed-on: https://go-review.googlesource.com/c/website/+/421054
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Nicolas Hillegeer <aktau@google.com>
2022-08-04 22:17:05 +00:00
Michael Anthony Knyszek 3f2af1efd5 _content/doc/gc-guide: incorporate additional feedback
From comments by aktau@google.com on CL 414397.

Change-Id: Ic6a5edbd477dbf6c54b996e652056e2189f727ae
Reviewed-on: https://go-review.googlesource.com/c/website/+/417649
Reviewed-by: Nicolas Hillegeer <aktau@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Lasse Folger <lassefolger@google.com>
2022-08-04 19:46:20 +00:00
Robin Eklind 8779dfb355 doc: fix typo in comment.md
Removed duplicated "package json" string.

Change-Id: Iafd2efadd420d05497d95b4ada4fcae78a1ddae8
GitHub-Last-Rev: dd0b34ef36
GitHub-Pull-Request: golang/website#172
Reviewed-on: https://go-review.googlesource.com/c/website/+/421034
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2022-08-04 18:16:37 +00:00
aoba eb405f2669 _content/blog/when-generics.md: fix typo in code
Thank you for great article!
 I found a small typo on example code. So, I fixed it!
`cmp` → `less`

Change-Id: I2b595b4be12fe8cf60c69ed66902369378f5ca9c
GitHub-Last-Rev: cc594d707c
GitHub-Pull-Request: golang/website#171
Reviewed-on: https://go-review.googlesource.com/c/website/+/420734
Reviewed-by: 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>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2022-08-03 19:52:33 +00:00
Russ Cox 9488f16739 _content/blog: add go1.19
Announce Go 1.19 (to be posted with the release, planned for August 2).

Change-Id: I82dcde83baca44bf3f4ff2fc28126c3a7a445dbc
Reviewed-on: https://go-review.googlesource.com/c/website/+/420014
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-08-02 17:13:58 +00:00
Dmitri Shuralyov 7bdd498251 internal/history: add Go 1.19, remove release notes draft notice
Fixes golang/go#51400.

Change-Id: I2363d68eab107631ad269cc2d6cdb70ecdb4a6b2
Reviewed-on: https://go-review.googlesource.com/c/website/+/420815
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
2022-08-02 16:29:00 +00:00
Matthew Dempsky 3af8cad8bd _content/doc: remove mention of -installsuffix removal
We ended up reverting CL 415236 due to a Google-internal dependency,
but I didn't update the doc fix CL before it was submitted.

Updates golang/go#51225.

Change-Id: I36142e6ea3f15251c54a7c3a6ddb953f9c18775f
Reviewed-on: https://go-review.googlesource.com/c/website/+/420614
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-08-01 18:43:39 +00:00
Dmitri Shuralyov 4504da45ad _content/doc: add Go 1.19 release notes
Copied from the main Go repo at CL 417534.
Deleted there in CL 420418.

For golang/go#51400.

Change-Id: I32b1464638f3aa8fee6dad65aa8331da0c33c50c
Reviewed-on: https://go-review.googlesource.com/c/website/+/420417
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2022-08-01 17:51:25 +00:00
Max Riveiro 0e082e42a9 _content/security/vulndb: fix links to package docs
Change-Id: Id2011a0261d14f859356215297c6bdf600df4a0f
GitHub-Last-Rev: a01cd2b2f3
GitHub-Pull-Request: golang/website#167
Reviewed-on: https://go-review.googlesource.com/c/website/+/417696
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-07-27 21:45:08 +00:00
Russ Cox 70d30b4158 _content: add AUTHORS page, and CONTRIBUTORS redirect
Now that there's no AUTHORS file, go.dev/AUTHORS will become a dead link
as of Go 1.19, and tip.golang.org/AUTHORS is already one.
Write a page to keep those links not 404-ing.

Same is true for CONTRIBUTORS; redirect to AUTHORS.

For golang/go#53961.

Change-Id: I17cc932f3f870bf4b9970151ead4b5e72a94845b
Reviewed-on: https://go-review.googlesource.com/c/website/+/418932
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-07-25 21:24:22 +00:00
Russ Cox 25f6a5439c all: remove references to AUTHORS, CONTRIBUTORS files
Also fix unnecessary capitalization in blog/experiment.md.

For golang/go#53961.

Change-Id: Ief95e4cdd2085c081a4ad97ffc8678db75bfce69
Reviewed-on: https://go-review.googlesource.com/c/website/+/418930
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-07-22 15:53:15 +00:00
Hana (Hyang-Ah) Kim 2cd3ef36e8 _content: stop the download button from opening /dl in a new tab
Download button opened the dl page in a new tab because previously, the download page was in a separate host (golang.org). Since now go.dev and golang.org are unified to one site, it makes sense to avoid a separate tab.

Fixes golang/go#53637

Change-Id: Ie8c9fd6741be9be154bb375082aff42f7b7d1720
Reviewed-on: https://go-review.googlesource.com/c/website/+/416177
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-07-19 20:50:36 +00:00
Julie Qiu 8e8269e7ba _content: update go.dev/security page
There is now a main documentation page for all things security.

Change-Id: Ie85a9a5d642df6b70c7a821d4a83cc14dbb5e6b4
Reviewed-on: https://go-review.googlesource.com/c/website/+/418214
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2022-07-19 16:46:13 +00:00
Heschi Kreinick b04a5fd548 _content/assets: add logos and brand book
These are referenced from go-brand.md via short links, which I'll update
once this CL is deployed.

Change-Id: Iecd5d1a95bffa3fdd608e0691568cb7bda810225
Reviewed-on: https://go-review.googlesource.com/c/website/+/418114
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Heschi Kreinick <heschi@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-07-18 19:49:47 +00:00
Heschi Kreinick 2660036b40 _content/doc: host images used by diagnostics.html
These are the only files in their bucket and I'd like to delete it.

Change-Id: Id1857750de366569c3bcf0e031ba0fbe0955a7ca
Reviewed-on: https://go-review.googlesource.com/c/website/+/417653
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-07-18 19:12:50 +00:00
Michael Stapelberg fc61a7085a _content/doc/gc-guide: fix typos
Change-Id: I819d0ec7231a29c813a8a2cf77244cbdd8f698a7
Reviewed-on: https://go-review.googlesource.com/c/website/+/418054
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2022-07-18 14:17:25 +00:00
Michael Anthony Knyszek 8f0be5672e _content/doc/gc-guide: improve small-screen behavior of vis controls
Change-Id: I362304fca617673efcd57ef6ae028c2c9d0869f4
Reviewed-on: https://go-review.googlesource.com/c/website/+/417635
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
2022-07-14 19:26:51 +00:00
Michael Anthony Knyszek 16152460fb _content/doc/gc-guide: explicitly set font size for axis labels
Fixes golang/go#53850.

Change-Id: I0b9262391c992d03f316918775bff7b75baa009c
Reviewed-on: https://go-review.googlesource.com/c/website/+/417634
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-07-14 19:19:57 +00:00
Michael Anthony Knyszek cb841f4c22 _content/doc: add link to GC guide from /doc index
Change-Id: Iedd8c989bd5343dc5fb7109c927a516612d0ea97
Reviewed-on: https://go-review.googlesource.com/c/website/+/417155
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-07-13 16:33:15 +00:00
Michael Anthony Knyszek ef969ef097 _content/doc: add GC guide for Go 1.19
Fixes golang/go#53360.

Change-Id: I8a97138d31150b6930139ea6eb7dc2581260e43d
Reviewed-on: https://go-review.googlesource.com/c/website/+/414397
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-07-12 18:20:47 +00:00
Ian Lance Taylor 820135fd3e _content/blog/when-generics: add missing parenthesis
Change-Id: I81078879a99602edf5d5bdbb01ae8391d375f186
Reviewed-on: https://go-review.googlesource.com/c/website/+/415274
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-07-06 16:50:17 +00:00
Russ Cox ecd2fa3d3c _content/doc/comment: add note about conflicting package imports
When multiple source files import different packages to the same name,
that creates an ambiguity, disallowing the use of the short package name
in doc comment links.

For golang/go#51082.

Change-Id: Id46ca1e2db2c681e02ed34fc4dd57e3e43030994
Reviewed-on: https://go-review.googlesource.com/c/website/+/414694
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-06-28 13:01:52 +00:00
etakahashi b1d076a072 ref: fix typo to GOWORK
Fixes golang/go#53550

Change-Id: I1d354930c9482ab6f85852b900baf09de2472760
Reviewed-on: https://go-review.googlesource.com/c/website/+/414154
Auto-Submit: Carlos Amedee <carlos@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-06-27 15:26:35 +00:00
Hana (Hyang-Ah) Kim 6b9583b283 _content/ref: specify redirect for /ref and /ref/ using /ref/index.md
We want both `/ref` and `/ref/` to point to `/doc/#references` section.
All documents for /ref/* are available from this unified website, so we
can set up a redirect rule using the native redirect support provided by
the internal/web package instead of relying on the internal/redirect rule.

Fixes golang/go#53243

Change-Id: Ibed1aefc82f8b93ae14775efbb456b1571053eda
Reviewed-on: https://go-review.googlesource.com/c/website/+/413914
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-06-24 14:11:52 +00:00
Frederik Zipp 4056b246ea all: fix a lot of typos
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>
2022-06-15 16:32:49 +00:00
sethbattin 08809b7f2b highlight all changed parts of the tutorial code
This change is a fix for what appears to be a typo.  In the modules tutorial, in [section "Return greetings for multiple people"](https://golang.org/doc/tutorial/greetings-multiple-people), the step 2 code block does not indicate all the changed sections.

Everything I highlighted needs to changed in order for the code to work as intended.  I found the highlights to be very helpful in following and transcribing the tutorial, so I noticed when they were incorrect.

Change-Id: I0e5ccdef4053b2f6a7a5688e5be9c3f6307c5486
GitHub-Last-Rev: 84a5c6e3ba
GitHub-Pull-Request: golang/website#49
Reviewed-on: https://go-review.googlesource.com/c/website/+/311329
Reviewed-by: Steve Traut <straut@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-06-15 16:30:28 +00:00
Michael Anthony Knyszek a752210e8d _content/doc: add work-in-progress gc-guide.html
Currently we're publishing links to go.dev/doc/gc-guide but these links
are broken. I'm currently working on this, but at the very least let's
publish a work-in-progress page so that the status is clearer to those
who click the link.

For golang/go#53360.
Fixes golang/go#53337.

Change-Id: Id3c6107d25ce9980e88d53c8ba6ec5b4349aa29f
Reviewed-on: https://go-review.googlesource.com/c/website/+/411954
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-06-13 20:07:09 +00:00
Julie Qiu 0296687e2e _content/security/vulndb: move API docs to separate page
Also add link to the main page to relevant documentation.

Change-Id: I824e5385a53a578d722f1c3dc97457de1d0efce2
Reviewed-on: https://go-review.googlesource.com/c/website/+/410245
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2022-06-08 19:48:07 +00:00
Russ Cox 4ab299dc76 _content/doc: document doc comments at go.dev/doc/comment
This new page documents how to write doc comments,
which has always been missing, as well as explaining the
new Go 1.19 doc comment syntax and what to do if gofmt
reformats a comment in an unexpected way.

For golang/go#51082.
Fixes golang/go#44194.

Change-Id: I64baed6124e05cbe084c2df14f2a5611c6fccd5d
Reviewed-on: https://go-review.googlesource.com/c/website/+/410394
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Chris Hines <chris.cs.guy@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
2022-06-07 16:23:46 +00:00
Julie Qiu 1521c226ad _content/security/vulndb: format markdown
Also add a note that this project is a WIP.

Change-Id: I85dfea09d0d63a42043128fbb407d2051342b424
Reviewed-on: https://go-review.googlesource.com/c/website/+/410215
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-06-06 17:01:53 +00:00
Julie Qiu 0dceb95d04 _content/security/vulndb: fix URLs
Change-Id: I5d3f80e2ea21b29aefd9a3e019463a269d3900a7
Reviewed-on: https://go-review.googlesource.com/c/website/+/410175
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-06-03 15:15:32 +00:00
Mike Seplowitz 5a173746ab _content/doc/devel: add ids for each minor version to release.html
Fixes golang/go#50503

Change-Id: Ib2d95e8b3c14ff9a30d3b5d4343c8e6d4d7d224c
Reviewed-on: https://go-review.googlesource.com/c/website/+/376454
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-06-02 22:01:12 +00:00
ariathaker 6936be3fa7 _content/security/vulncheck: convert html to markdown for vulncheck file
Change-Id: I4f693b019d49eb68ce3fcb579a4a19831e05c1fc
Reviewed-on: https://go-review.googlesource.com/c/website/+/408980
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-06-02 20:45:51 +00:00
ariathaker 9f2c589dfe _content/security: convert html to markdown for policy file
Change-Id: Ie54c3fa089bbe5febd5ebdc02602ef814a22a0a9
Reviewed-on: https://go-review.googlesource.com/c/website/+/408979
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2022-06-02 20:45:40 +00:00
Julie Qiu 4224ed66e4 _content/security/vulndb: add architecture info
Change-Id: Ieca6139231546530782ea21993ee97cd1e4c3c12
Reviewed-on: https://go-review.googlesource.com/c/website/+/409996
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-06-02 18:12:31 +00:00
ariathaker f66dd39af9 _content/security/vulndb: convert html to markdown on index file
The table is left as HTML because markdown is not supported.

Change-Id: I7824245f059f27ba6fef0e71feb5d3024a117c32
Reviewed-on: https://go-review.googlesource.com/c/website/+/408978
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
2022-06-02 13:51:11 +00:00
Todd Kulesza 7c70422195 _content/blog/survey2022-q2: survey announcement
Announce the 2022 June edition of the Go Developer Survey and
explain our shift to two surveys each year.

Change-Id: Ia7a6069fef44d678d19e14ab32a2aa2c1b237261
Reviewed-on: https://go-review.googlesource.com/c/website/+/408837
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-06-01 17:25:17 +00:00
Ian Lance Taylor ec0d7080e7 _content/blog/survey2021-results: tipo: complementary
Change-Id: I91472890d0b32f27d7258c706ba955cbca59beb0
Reviewed-on: https://go-review.googlesource.com/c/website/+/401554
Auto-Submit: Todd Kulesza <tkulesza@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Todd Kulesza <tkulesza@google.com>
2022-05-31 02:55:33 +00:00
Zeke Lu 554288cff2 _content: do not run playground code on page load
The purpose is to avoid overwriting user content restored by opening
recently closed tab from the history.

It turns out that https://golang.org/cl/407055 does not address the
issue reliably. If the run action happens before the user content is
restored, the source code of the "hello world" example will be sent
to the server for formatting. Most of the time (if not always), the
format result will return after the user content is restored. In this
case, the format result will overwrite the restored user content.

We can delay the run action until the user content is restored. But it's
subtle to decide how long to delay. On the other hand, I think it does
not make sense to run the "hello world" example on load, so I prefer
to address the issue by removing the run action on page load.

Fixes golang/go#49895
Fixes golang/go#53065

Change-Id: Ia044103e79a15d0b351e4257af3aa74558c302d9
GitHub-Last-Rev: 40170ad2e8
GitHub-Pull-Request: golang/website#162
Reviewed-on: https://go-review.googlesource.com/c/website/+/408414
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-05-25 16:59:47 +00:00
Julie Qiu 4f3f7aaea0 _content/security: fix header for CNA page
Change-Id: I774fadd8d05decc737f1a95abca5b8520f4baf54
Reviewed-on: https://go-review.googlesource.com/c/website/+/408316
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-05-25 15:41:59 +00:00
Zvonimir Pavlinovic f006dd8ec8 _content/security: add vulncheck page
Images showing the initial state of the page:

https://screenshot.googleplex.com/Boo3JDxkd7dtT68.png
https://screenshot.googleplex.com/4HKEYCmHFDLDjYJ.png
https://screenshot.googleplex.com/9g44QZqX2k5758F.png
https://screenshot.googleplex.com/7bWWVCGDHejkW67.png

Change-Id: Icdbc5dda10f3571a2fbe399ddfe6d4da4069b57c
Reviewed-on: https://go-review.googlesource.com/c/website/+/407334
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-05-24 20:01:07 +00:00
Zeke Lu 09b9c2003e _content: fix go.dev/play not to select example on load
Select the "hello.go" example on load will make it run.
But it will overwrite the source code that a user want to restore
by reopening the unintentionally closed tab from the browser history.

Since the example code is already loaded without the select action,
let's remove the select action and trigger the click event of the Run
button directly.

Note that we should replace the "DOMContentLoaded" event with
the "load" event. Otherwise, the click event will be triggered before
the user content is restored, which will prevent the user content
being restored.

Fixes golang/go#49895

Change-Id: I897e22a5accc3271deaea5fa3b2f218fe66603d3
GitHub-Last-Rev: dc930974e3
GitHub-Pull-Request: golang/website#161
Reviewed-on: https://go-review.googlesource.com/c/website/+/407055
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-05-24 16:45:29 +00:00
George Looshch f66592d150 _content/doc: fix inconsistent tabs in code snippets
Replace real tabs with 4 spaces in code snippets to make indentation
consistent

Fixes golang/go#52255

Change-Id: Ida06a1dd2c2cd3100c32d6c29febf60aba2e20d7
Reviewed-on: https://go-review.googlesource.com/c/website/+/399374
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-05-24 14:51:34 +00:00
Julie Qiu 9e1b9c76f9 _content/security/vulndb: add initial landing page
An initial version of the Go vulnerability database landing page is
added.

Change-Id: I4dd8ebb0301fb06b999ec071fbb2d07efa57a803
Reviewed-on: https://go-review.googlesource.com/c/website/+/404034
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-05-23 22:16:50 +00:00
Julie Qiu 396b163c08 _content/security/vulndb: add disclosure policy
An initial policy for the Go CNA is added.

Change-Id: I60e5bdb041e78f0c509ed5d6f51fda7b2e10af1b
Reviewed-on: https://go-review.googlesource.com/c/website/+/398274
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
2022-05-12 17:08:59 +00:00
matsuyoshi 8ba050679c mod.md: correct some links
Change-Id: Ib0c4611c84c7eca652c6128faa8645be7c9ec9f0
Reviewed-on: https://go-review.googlesource.com/c/website/+/362034
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2022-05-09 21:33:55 +00:00
Yogesh Mangaj 32757e9e3d _content/blog/intro-generics: fix typo in code
Change-Id: Ie4626414ab2ff6141166ea330147d8845b66fcfa
GitHub-Last-Rev: a073f54ff2
GitHub-Pull-Request: golang/website#159
Reviewed-on: https://go-review.googlesource.com/c/website/+/405054
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2022-05-09 20:50:44 +00:00
Ian Lance Taylor 59231c081a _content/blog/heroku: avoid markdown syntax in summary line
Fixes golang/go#52616

Change-Id: If5326a9098e17d239fe1c6ed340515347dd57ad1
Reviewed-on: https://go-review.googlesource.com/c/website/+/403577
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-05-03 14:37:04 +00:00
GuoHui 3111543813 website: _content/blog/warp.go: correct example comment
Change-Id: Id3ccdb1867e39e260b205a68d1823f47e575f9b0
Reviewed-on: https://go-review.googlesource.com/c/website/+/403294
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Benny Siegert <bsiegert@gmail.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
2022-05-03 14:36:07 +00:00
Russ Cox fb9be63164 _content/doc/contribute: document new Hold label
Code-Review -2 is replaced by Hold +1.
Also update for recent review changes requiring two Google employees.

For golang/go#16764.
For golang/go#40699.

Change-Id: I6bf575e39309fdb0e25b5f741c39c71f23011334
Reviewed-on: https://go-review.googlesource.com/c/website/+/403054
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-04-29 18:37:11 +00:00
Julie Qiu bfa9653ace _content/security: add policy.html
We want to use go.dev/security as a landing page for all things Go
security.

In order to do so, go.dev/security now redirects to
go.dev/security/policy.

Once the landing page is created and all references to go.dev/security
are changed, go.dev/security will be its own page, with a link to the
security policy.

Change-Id: I281c38d3322abca35c87d9655debe126cc84cd64
Reviewed-on: https://go-review.googlesource.com/c/website/+/398255
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
2022-04-28 22:31:10 +00:00
Cristiano Vitorino d11dfd20ec _content/images/gopher: remove glitches from ladder.svg
Fix graphical glitches on the ladder SVG file.

Change-Id: Ic682ad88fa152fae54266aba15ea225ce2ac1ece
GitHub-Last-Rev: 4f3f85dc96
GitHub-Pull-Request: golang/website#157
Reviewed-on: https://go-review.googlesource.com/c/website/+/399655
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-04-22 21:54:16 +00:00
Alice Merrick 8b900b4d8e blog: 2021 Go developer survey results.
Change-Id: Ib0dfa65046193764d53930a458521856780d9acc
Reviewed-on: https://go-review.googlesource.com/c/website/+/400316
Reviewed-by: Todd Kulesza <tkulesza@google.com>
2022-04-19 20:20:40 +00:00
Suzy Mueller a7771c216c _content: fix colors for links in BackgroundQuotes
The colors for the link and the background color for the background
quotes are too similar, so the quotes do not appear. This change adds
style to the links in the background quotes so that they inherit the
colors.

Updates golang/go#52312

Change-Id: Ib7fa0b23ff194333f50c1346747ea06d25e09254
Reviewed-on: https://go-review.googlesource.com/c/website/+/400894
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Nooras Saba‎ <saba@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-19 17:42:38 +00:00
Russ Cox 7485a4ea00 all: update <meta> tags for social media
Use the same og:description and description; Signal at least uses description.

Use running gophers for the Twitter image for blog posts.

Adjust the gophers5logo to move the Go where it won't get cut off on Google chat.

Change-Id: I291ad7bf9ea58c0b6af3087213015196434d3163
Reviewed-on: https://go-review.googlesource.com/c/website/+/400434
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-04-15 21:34:11 +00:00
Russ Cox faf73da761 all: add <meta> tags for social media cards
This should make sharing on Twitter and in chat apps show nice
little cards for go.dev links that are shared. We can revise as needed
once we get some experience seeing them live.

Change-Id: I2fb41afd90193042c881868fe592bd2294208c90
Reviewed-on: https://go-review.googlesource.com/c/website/+/400334
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-04-14 15:32:27 +00:00
Ian Lance Taylor fb223f7dfa _content/blog/when-generics: new blog article
Provide general guidelines for when to use generics.

Change-Id: If97e1044e103a7386aeaf224810030ccae9d2c03
Reviewed-on: https://go-review.googlesource.com/c/website/+/375075
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-04-12 20:47:57 +00:00
jiahua wang 8d0c19492c _content: update footer menus link to go.dev/blog
Change-Id: I21804defcbcafc84de4cbd6b34758e4e4734b8ee
Reviewed-on: https://go-review.googlesource.com/c/website/+/369477
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2022-04-12 17:12:31 +00:00
Breno Andrade 683b5694f2 _content/blog/get-familiar-with-workspaces: add missing word in comment
Fixes golang/go#52252

Change-Id: I181253220f971db7ef74ff6c6767f0bbf549477c
GitHub-Last-Rev: 2a437a0446
GitHub-Pull-Request: golang/website#155
Reviewed-on: https://go-review.googlesource.com/c/website/+/399415
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: Dmitri Shuralyov <dmitshur@google.com>
2022-04-12 00:41:37 +00:00
Jamal Carvalho 6f83ca0519 _content/css: use color variables in download table
For the text in the download table to be visible for all
themes the row background color must switch with the
page theme.

For golang/go#34601

Change-Id: I369445f25efc3b3771f324f1c0555f9049cf3390
Reviewed-on: https://go-review.googlesource.com/c/website/+/398974
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2022-04-07 21:12:41 +00:00
Jamal Carvalho 7c52741a0f _content: add dark theme toggle
Added a toggle button with three states: auto, light, and dark
to set the preferred color scheme of go.dev.

For golang/go#34601.

Change-Id: I771f64f34294fa0a86bbcdd6c0acaa4af7e7cf8c
Reviewed-on: https://go-review.googlesource.com/c/website/+/391536
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
2022-04-07 14:11:52 +00:00
Michael Matloob d7134f9a80 _content/blog/get-familiar-with-workspaces: post
New post on Go workspaces.

This is a roll-forward of CL 397274, rolled back in CL 398114.

Change-Id: Ie6b741cf73620faf1f486a85d82bedae2cc89426
Reviewed-on: https://go-review.googlesource.com/c/website/+/398534
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-05 19:00:55 +00:00
Michael Matloob c7fff86154 Revert "_content/blog/get-familiar-with-workspaces: post"
This reverts CL 397274

Reason for revert: not supposed to be submitted yet

Change-Id: I7d779d41ce5b44f05dfd2cca7aa977321333686e
Reviewed-on: https://go-review.googlesource.com/c/website/+/398114
Trust: Michael Matloob <matloob@golang.org>
Trust: Peter Weinberger <pjw@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
2022-04-04 19:01:14 +00:00
Beth Brown 7ed8960641 _content/blog/get-familiar-with-workspaces: post
New post on Go workspaces.

Change-Id: Ied8ab7f1472609a1272f083173d0fbc2e38fcd5d
Reviewed-on: https://go-review.googlesource.com/c/website/+/397274
Reviewed-by: Michael Matloob <matloob@golang.org>
Trust: Ian Lance Taylor <iant@google.com>
2022-04-04 18:55:23 +00:00
Grégoire Détrez 9c49bacabd _content/doc/modules/managing-dependencies: fix link syntax
Change-Id: I88229a3b5bf0ed4d269db57c244e50a6e1e659e7
GitHub-Last-Rev: 32a4b54bf2
GitHub-Pull-Request: golang/website#143
Reviewed-on: https://go-review.googlesource.com/c/website/+/394374
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-04-04 17:24:28 +00:00
uji 65a6c3b13f _content/doc/tutorial: add missing ` of tutorial for workplace
Fixes golang/go#51762

Change-Id: I62b360d470fa1cdd3b32e851e65def5ec867c18d
GitHub-Last-Rev: 1a3c23a3f8
GitHub-Pull-Request: golang/website#146
Reviewed-on: https://go-review.googlesource.com/c/website/+/394414
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-04-04 17:24:03 +00:00
Ian Lance Taylor 3407115540 _content/doc/go1.18: go fix requires go.mod go 1.18 for go:build change
Fixes golang/go#51873

Change-Id: Ied51c36a30cd18ff4a84d164e62df2690931d94f
Reviewed-on: https://go-review.googlesource.com/c/website/+/396879
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-04-01 00:50:09 +00:00
Jordan Liggitt 3568773f64 _content/doc/go1.18: move sha1 removal to unspecified future release
Change-Id: I747e2c8b42bb4ccc90979adb4fbfe76441fec389
Reviewed-on: https://go-review.googlesource.com/c/website/+/396754
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Filippo Valsorda <valsorda@google.com>
2022-03-31 16:42:39 +00:00
Filippo Valsorda a1a0fcaf76 _content/blog: add supply-chain.md
Change-Id: I7e60ef59e4b425fdfcb3c9615431a426d910746d
Reviewed-on: https://go-review.googlesource.com/c/website/+/397215
Reviewed-by: Russ Cox <rsc@golang.org>
Trust: Filippo Valsorda <valsorda@google.com>
Run-TryBot: Filippo Valsorda <valsorda@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-31 16:18:47 +00:00
Bernhard Valenti 93790477c6 _content/doc/tutorial: fix inaccuracies in workspace tutorial
the first change is related to: https://github.com/golang/go/issues/51449

Change-Id: I857d412a5082b142bb54d7fab685d298488376f9
GitHub-Last-Rev: e19bc97f9b
GitHub-Pull-Request: golang/website#136
Reviewed-on: https://go-review.googlesource.com/c/website/+/389638
Reviewed-by: Michael Matloob <matloob@google.com>
Trust: Michael Matloob <matloob@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-31 05:23:04 +00:00
Dmitri Shuralyov a4d623c5b7 cmd/golangorg, _content/talks: restore talks that use .html command
Invoke the template named "html" using the usual html/template way
instead of invoking it as a function (via the tmplfunc package) to
work around https://github.com/rsc/tmplfunc/issues/1.

The package golang.org/x/tools/present imports "html/template" from
the standard library, so its HTML.HTML field of type template.HTML
isn't understood to be content from a trusted source by the internal
backported copy. Use type aliases for those special types to fix that.

Fixes golang/go#51989.
Updates rsc/tmplfunc#1.

Change-Id: Ib9609f41b17407e297ea3bb111f346188aa7a9b0
Reviewed-on: https://go-review.googlesource.com/c/website/+/396234
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-29 20:34:17 +00:00
Manlio Perillo e0a1222b20 _content/css: hide the footer in media print
Currently, unlike the site header, the site footer is visible when
printing a document.

Change-Id: Ieb17be48cd0aa679cb0a4e675df7c39678d9b45a
Reviewed-on: https://go-review.googlesource.com/c/website/+/394174
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-28 16:27:59 +00:00
Robert Griesemer 1847c6bb80 x/website/_content/doc: clarify prose on constraint type inference in blog post
Change-Id: I527fcc7be96f60ee78df2bbc600c755cd26e76a0
Reviewed-on: https://go-review.googlesource.com/c/website/+/395616
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Robert Griesemer <gri@google.com>
2022-03-25 17:14:49 +00:00
RenKanai 1be1c0200e _content/blog/normalization: update golang.org/x/text links
Fixes golang/go#51891.

Change-Id: I15a634926cb34316c5d1c2231aca470e1763b750
GitHub-Last-Rev: 1478424e11
GitHub-Pull-Request: golang/website#147
Reviewed-on: https://go-review.googlesource.com/c/website/+/395134
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-03-24 20:24:28 +00:00
Alberto Donizetti 37dcb7bd3b _content/doc: emphasize need to remove existing installations
This change updates the Linux installation instructions to emphasize
the need to delete an existing Go tree in /usr/local/go before
untarring the downloaded archive.

This is a common mistake people seem to make on Linux, and it's known
to produce broken Go installations.

Updates golang/go#51760

Change-Id: Ia7375957a6034defc708add74cf3c2cf4dbee5d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/393755
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-24 20:10:01 +00:00
Ian Lance Taylor 07c9391118 _content/blog/intro-generics: s/generics is/generics are/
Change-Id: I9399ec4d0ce4c5ef5a346b51a11610c743cba091
Reviewed-on: https://go-review.googlesource.com/c/website/+/395614
Reviewed-by: Robert Griesemer <gri@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-24 19:54:36 +00:00
Eli Bendersky 8cd60a5304 _content/blog/intro-generics: add import for "constraints"
In the first code sample that uses the `constraints` package, add an explicit
import for it; otherwise this code sample will not work in Go 1.18

Change-Id: I4e9823b34128cc068a77947223ac8e71c7fdf722
Reviewed-on: https://go-review.googlesource.com/c/website/+/395334
Run-TryBot: Eli Bendersky‎ <eliben@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-03-24 12:20:10 +00:00
Eli Bendersky bbcf929128 _content/blog/intro-generics: fix typos in code
Change-Id: I10fa17a60891c5e18a5f11895ad84dc7a5282afe
Reviewed-on: https://go-review.googlesource.com/c/website/+/395065
Run-TryBot: Eli Bendersky‎ <eliben@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Eli Bendersky <eliben@google.com>
2022-03-24 12:19:40 +00:00
Ian Lance Taylor 2b7c813bbe _content/doc/index: add link to contribution guide
Fixes golang/go#50849

Change-Id: Ifd74619ce376d9d5ebff9698ce55611dab20421a
Reviewed-on: https://go-review.googlesource.com/c/website/+/381295
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-24 00:54:24 +00:00
Dmitri Shuralyov 267f6b2af3 _content/blog/intro-generics: apply minor touch-ups
The blog post wasn't listed at go.dev/blog because its metadata
was missing a '---' line at the bottom. Add it. (It was showing
up at go.dev/blog/intro-generics only, with metadata visible as
plain text.)

Fix the URL of the embedded YouTube video.

Point to the moved location of the constraints package in x/exp.

Replace absolute go.dev links with relative ones, so they work
for more users (at golang.google.cn/blog, and so on).

Shorten the links to proposal slightly, using HEAD to refer to the
default branch.

Change-Id: Ie78838a50bb50843e6c242781252d5347063e361
Reviewed-on: https://go-review.googlesource.com/c/website/+/394994
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-03-23 12:42:45 +00:00
Sean Liao ff8a11c2e8 _content/doc/tutorial: fix typos in fuzz tutorial
Fixes golang/go#51372
Fixes golang/go#51871

Change-Id: I64580e1608b75cb4e6f0d39ccc43f432e0c2dfca
Reviewed-on: https://go-review.googlesource.com/c/website/+/394814
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-23 12:42:04 +00:00
Sean Liao 9343ecdf8a _content: fix links to x repos
Fixes golang/go#51785

Change-Id: Ic5efc91122f83b92ce37de1cd402f3bba3b84cf1
Reviewed-on: https://go-review.googlesource.com/c/website/+/394815
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-23 02:49:11 +00:00
Sean Liao 9072014840 _content/solutions: packend -> backend
CL 375798 fixed this, but was overwritten by CL 384874

Fixes golang/go#51251

Change-Id: I709861181e925c6f4046d183418c3521a876e592
Reviewed-on: https://go-review.googlesource.com/c/website/+/394816
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-23 02:45:01 +00:00
Ian Lance Taylor f2a438f89c _content/doc/install/source: mention GOAMD64
Fixes golang/go#51704

Change-Id: I5f9efbbcd615ca7142311d8082fe1b36654df4eb
Reviewed-on: https://go-review.googlesource.com/c/website/+/393554
Reviewed-by: Keith Randall <khr@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-23 00:07:32 +00:00
Ian Lance Taylor c091946884 _content/blog/intro-generics: new article
Change-Id: I7d69075c03e51e357d0b9457eba6be370cca9307
Reviewed-on: https://go-review.googlesource.com/c/website/+/375115
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-22 16:03:26 +00:00
Ian Lance Taylor 4885420f38 _content/doc/go1.18: change some 1.19 references to "a future release"
Realistically many of these changes are not going to happen in 1.19,
since the freeze is only five weeks away. If they get in, great.
But let's not suggest that that is likely.

Change-Id: Icd8478d10bc8657838fd196fb1157204c7a9b629
Reviewed-on: https://go-review.googlesource.com/c/website/+/394254
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Ian Lance Taylor <iant@google.com>
2022-03-22 03:16:40 +00:00
Dmitri Shuralyov cc71b62800 internal/history: split Release summary into bug and security fixes
Make it possible to use the higher-level fix summary fields, instead of
CustomSummary, when a release has both bug fixes and security fixes.

Rewrite the recent hand-written custom summaries to use the new fields,
which produces equivalent output that differs largely in white-space
and some trivial consistency fixes.

Fixes golang/go#51719.
Updates golang/go#38488.
Updates golang/go#44918.

Change-Id: I672cea21f63cb4ab9764efb6cbc783cf503b791c
Reviewed-on: https://go-review.googlesource.com/c/website/+/393357
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <amedee@google.com>
2022-03-21 20:34:41 +00:00
Eno Compton 7cb1456a37 tour: correct typo
Change-Id: I14f0317c1f6c36aa922c43eab45a7bc4dd698142
Reviewed-on: https://go-review.googlesource.com/c/website/+/394314
Reviewed-by: Eli Bendersky‎ <eliben@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Eli Bendersky‎ <eliben@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Eli Bendersky <eliben@google.com>
2022-03-21 19:55:56 +00:00
Michael Matloob dc08095e2b _content/ref: update the modules reference for GOWORK
The -workfile flag's function has been absorbed by the GOWORK
environment variable. Update the workspaces reference to reflect that.
Also fix an error in the workspaces tutorial.

For golang/go#45713

Change-Id: Id8dc8bb8dc6458d03d7b947ec78d84263d9689e1
Reviewed-on: https://go-review.googlesource.com/c/website/+/393360
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Beth Brown <ecbrown@google.com>
2022-03-21 18:00:16 +00:00
Jeremy Chase 927473651d _content/doc/fuzz: correct typos
Change-Id: I62e808f434b2ce0701da4d77f3b03e1d3cee00fc
GitHub-Last-Rev: 1b44a82e96
GitHub-Pull-Request: golang/website#133
Reviewed-on: https://go-review.googlesource.com/c/website/+/387314
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-20 16:45:45 +00:00
Mauricio Alvarado 7b9aa998da _content/solutions: add bitly case study
Added Bitly case study and replaced Target logo with Bitly
on the front page.

Change-Id: I3ded2a12a520f6e45bfc1623101bde26ed0c37e3
Reviewed-on: https://go-review.googlesource.com/c/website/+/393214
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Trust: Peter Weinberger <pjw@google.com>
2022-03-17 15:23:22 +00:00
Jamal Carvalho d27a511132 _content/css: fix image background color in dark mode
Transparent images on the doc pages assume there is a white background.
This change preserves the white background for images when the site is
viewed with the dark theme.

For golang/go#34601.

Change-Id: I4c0a28d173d7ecf52547da6e5a6382d84bc922e3
Reviewed-on: https://go-review.googlesource.com/c/website/+/392479
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-17 15:12:37 +00:00
Jamal Carvalho cbc2ed29a6 _content: fix solutions pages subnavigation
When the header was made unsticky the subnav for the
usecase page was not adjusted. This change fixes
the positioning and initialization of the subnav.

Change-Id: I48569fc6c4e21b782ed30269db17083b7b5eea74
Reviewed-on: https://go-review.googlesource.com/c/website/+/391538
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-17 15:12:24 +00:00
Ian Lance Taylor 2b642b0b55 _content/doc/go1.18: mention go:embed all:pattern
For golang/go#43854

Change-Id: I3724f620e0e2f122e7bbb615db8c0ce1b4151a8d
Reviewed-on: https://go-review.googlesource.com/c/website/+/393234
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-17 03:32:36 +00:00
Dmitri Shuralyov 2a575f4ba7 _content/doc: revert "temporarily add Go language specification documents"
Revert commit 2e3ad7d979 (CL 393115).
By now, the website is using Go content from release-branch.go1.18,
so this temporary mitigation is no longer needed.

Fixes golang/go#51686.

Change-Id: I47e3962cdffd88c708e1c150d9cf4bdcac217b24
Reviewed-on: https://go-review.googlesource.com/c/website/+/393355
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2022-03-16 15:34:51 +00:00
Eli Bendersky 76352824d2 _content/doc: change generics and fuzz tutorials from beta
Go 1.18 is released; these tutorials are now out of beta as well.

Fixes golang/go#51688

Change-Id: I5ded6c75f3131c97e3d2104146e0dff98dd7b1b0
Reviewed-on: https://go-review.googlesource.com/c/website/+/393215
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: Eli Bendersky <eliben@google.com>
2022-03-16 14:24:38 +00:00
Ian Lance Taylor f22c23a0f3 _content/doc/faq: add a couple of generics FAQs
Also update the existing generics FAQ.

For golang/go#48274
Fixes golang/go#49938

Change-Id: Id87dbf43f4a151abb7c2c2f6309fc8ee3c947aa1
Reviewed-on: https://go-review.googlesource.com/c/website/+/374215
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
Trust: DO NOT USE <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-15 19:38:01 +00:00
Dmitri Shuralyov 2e3ad7d979 _content/doc: temporarily add Go language specification documents
The canonical location for these documents is in the main Go repository
in the doc directory. Due to go.dev/issue/51686, the website is using
Go content from release-branch.go1.17 rather than release-branch.go1.18.

Temporarily add a copy of the spec docs to x/website so it's possible to
view them at go.dev (in addition to tip.golang.org) while that issue is
being resolved.

For golang/go#51686.

Change-Id: Ia6640d6c32af631f562db1294d191f461373b9ee
Reviewed-on: https://go-review.googlesource.com/c/website/+/393115
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-15 18:35:48 +00:00
Russ Cox 5461726d87 _content/blog: fix Go 1.18 post
Change-Id: I7d3adf12a996803d8d02af44d0545605f2925384
Reviewed-on: https://go-review.googlesource.com/c/website/+/393114
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-03-15 18:18:20 +00:00
Eli Bendersky b970f4b5b0 tour: add a basic explanation and examples of generics to the Tour of Go
Change-Id: Iad4a0bf762b023b14d3f9c532da31674fcca804c
Reviewed-on: https://go-review.googlesource.com/c/website/+/370174
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-03-15 17:46:42 +00:00
Matt Pearring e013a4eafd _content/blog: add go1.18
Change-Id: Iddde5f5b9039d694bd56afce49b190439f7f58ca
Reviewed-on: https://go-review.googlesource.com/c/website/+/392654
Reviewed-by: Eli Bendersky <eliben@google.com>
Trust: Heschi Kreinick <heschi@google.com>
2022-03-15 17:44:53 +00:00
Dmitri Shuralyov 18753261dd _content/doc/go1.18: remove draft notice
For golang/go#51683.
Fixes golang/go#47694.

Change-Id: I2d2842e78ba1c413b8171fd24f8fb18fa549c816
Reviewed-on: https://go-review.googlesource.com/c/website/+/390375
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: DO NOT USE <iant@google.com>
2022-03-15 17:02:55 +00:00
Robert Griesemer 05b8ae113a _content/doc: fix link in go1.18.html
Change-Id: I595b5370c2a43fabeb3b24638dd00a402427363f
Reviewed-on: https://go-review.googlesource.com/c/website/+/393054
Reviewed-by: DO NOT USE <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: David Chase <drchase@google.com>
2022-03-15 17:02:00 +00:00
Roland Shoemaker 67d6daca60 _content/doc/go1.18: preannounce x509 md5/sha1 deprecation
Pre-announce the removal of certificate signing with MD5 and SHA-1
based algs in 1.19.

Updates golang/go#42125

Change-Id: I78784f3182b1d33ce6271621abd6c35cd668d93c
Reviewed-on: https://go-review.googlesource.com/c/website/+/391174
Reviewed-by: Filippo Valsorda <valsorda@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-14 22:35:54 +00:00
Robert Findley 3b2b623776 _content/doc: add a section on the impact of generics in the ecosystem
Change-Id: I0d078c38dae7406e6af0be8317483b6a2f689f8c
Reviewed-on: https://go-review.googlesource.com/c/website/+/391654
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: DO NOT USE <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-14 13:17:35 +00:00
Robert Findley fd75d2c36d _content/doc: update Go 1.18 release notes for go/types predicates
Update the note on go/types predicates to document additional undefined
behavior.

Change-Id: I9a5266f1d451e32ca0b7ba8d40eb67eefcfe6922
Reviewed-on: https://go-review.googlesource.com/c/website/+/391537
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-10 18:15:04 +00:00
Jamal Carvalho 13c3316925 _content/css: improve contrast for playground and dark theme elements
For golang/go#34601.
Fixes golang/go#51584.

Change-Id: I0a1715eacb5e3cef51aff7285dbdf9a0a5a6ea3c
Reviewed-on: https://go-review.googlesource.com/c/website/+/391535
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Jamal Carvalho <jamalcarvalho@google.com>
2022-03-10 17:21:03 +00:00
Egon Elbre 2a5b184c6c _content: fix go.dev/play text color
The text color in go.dev/play was accidentally set to color-text-subtle
in CL 384874 whereas the correct color is color-text.

Fixes golang/go#51584

Change-Id: I0a512d826bb88dc16db032334350935503724f09
Reviewed-on: https://go-review.googlesource.com/c/website/+/391394
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Valentin Deleplace <deleplace@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2022-03-10 17:04:29 +00:00
Robert Griesemer f5512f03a0 _content/doc: update Go 1.18 release notes
Document field access limitations for type parameters.

Also, remove some superfluous "currently" uses - the
time context is clear from the introductory paragraph
of the respective section.

For golang/go#51576.
For golang/go#47694.

Change-Id: If4c12f95f024894a9efb949dda9341d8ab0dc77e
Reviewed-on: https://go-review.googlesource.com/c/website/+/391279
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-10 00:39:42 +00:00
Mauricio Alvarado c3338c2439 _content: add dark mode styles
Added dark mode styles and images.

For golang/go#34601

Change-Id: I1a4d9599cbe8e3b51380be914cfe1abbc3cd79bb
Reviewed-on: https://go-review.googlesource.com/c/website/+/384874
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-09 19:29:48 +00:00
Dmitri Shuralyov a00eda15b7 _content/doc/go1.18: update expected release date
Go 1.18 is now expected to be released in March 2022.

For golang/go#44513.
Fixes golang/go#51505.

Change-Id: I4f744dc96c6ef5150d7475b51759d5fc5b13633b
Reviewed-on: https://go-review.googlesource.com/c/website/+/390374
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <iant@google.com>
2022-03-07 21:40:38 +00:00
Sean Liao 02f43ed976 blog: fix caption formatting
Updates golang/go#38532

Change-Id: Iace87c755b7a7fbc64f0223e092f6e7f8eca06d4
Reviewed-on: https://go-review.googlesource.com/c/website/+/349849
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-07 13:17:15 +00:00
able.lv d63e5b517e _content/solutions/cloud: fix a typo
Replace "packends" with "backends"

Change-Id: I763e0ed6050fdb1124aafb0783611080458e449c
GitHub-Last-Rev: ae2b28cc3f
GitHub-Pull-Request: golang/website#119
Reviewed-on: https://go-review.googlesource.com/c/website/+/375798
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-03-05 21:27:01 +00:00
Ian Lance Taylor e52779f983 _content/doc/go1.18: mention net/http IDNA change
Based on CL 366955 originally by Timothy Gu.

For golang/go#46001
For golang/go#47694

Change-Id: Ide7711680d651c4cbbb6da13ab33b67cf5e26758
Reviewed-on: https://go-review.googlesource.com/c/website/+/389955
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Trust: DO NOT USE <iant@google.com>
2022-03-04 18:54:54 +00:00
Carlos Amedee 90c3e61b96 _content/doc: add Go 1.18 release notes
Copied from Go commit 2cb9e116d39176bd8a93609c63b175ac09eacea9 CL 388454.
Deleted there in CL 388515.

Updates golang/go#47694

Change-Id: I5f26ce2fc6ec96c5902dbe5838689fd139bcd0e5
Reviewed-on: https://go-review.googlesource.com/c/website/+/388556
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alex Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <amedee@google.com>
2022-03-02 21:28:23 +00:00
Michael Matloob d10dfbe324 _content/doc/tutorial: add a tutorial for workspaces
Change-Id: I0686121523da9b22666cfbad54821527ac5b8feb
Reviewed-on: https://go-review.googlesource.com/c/website/+/383854
Trust: Michael Matloob <michaelmatloob@gmail.com>
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-03-01 19:33:14 +00:00
Julie Qiu c18706c443 _content/doc/fuzz: add link to OSS Fuzz docs
Change-Id: I433d5947f64e099afe1683f81831eb7a5a7a3294
Reviewed-on: https://go-review.googlesource.com/c/website/+/388415
Run-TryBot: Julie Qiu <julie@golang.org>
Trust: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <iant@google.com>
2022-03-01 15:19:50 +00:00
cuishuang c3d40638f8 _content/blog: fix unavailable link
Change-Id: I8ef3c7d60f72c20c21e80609738772f3805a4c18
GitHub-Last-Rev: ea811c700a
GitHub-Pull-Request: golang/website#132
Reviewed-on: https://go-review.googlesource.com/c/website/+/387074
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-28 19:56:27 +00:00
Meng Zhuo d6638d3d92 _content: document cgo requirement for race detector
The race detector doc doesn't state cgo,
the content is basically as ALTree suggested in issue 51235.

Fixes golang/go#51235

Change-Id: I03356c01f4542e69a02c712063afb77ae68cc90f
Reviewed-on: https://go-review.googlesource.com/c/website/+/386454
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-25 04:25:08 +00:00
Chia-Chi Hsu 3962a089fc _content/doc/tutorial: fix number of rows in database-access.md
"Add three rows with values" should be "Add four rows with values".

Change-Id: I82103908292faf95c1b6c62ca57d6f47b0249ccb
GitHub-Last-Rev: 2a02403727
GitHub-Pull-Request: golang/website#126
Reviewed-on: https://go-review.googlesource.com/c/website/+/385594
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
2022-02-18 01:53:23 +00:00
Roland Shoemaker bff2e91b75 _content/doc/fuzz: add technical details
Adds a page to the fuzzing docs which contains a technical description
of the fuzzing implementation.

Change-Id: I9415548b91e56ad836932da1e61921cbb8086faf
Reviewed-on: https://go-review.googlesource.com/c/website/+/379594
Reviewed-by: DO NOT USE <katiehockman@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Trust: Roland Shoemaker <bracewell@google.com>
Run-TryBot: Roland Shoemaker <bracewell@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-09 04:02:22 +00:00
jiahua wang 5c1de7bed9 _content/doc/tutorial: fix a typo
Fixes golang/go#50853

Change-Id: Ia09043435f23b979a2a0d198318096e6ecf52cb5
Reviewed-on: https://go-review.googlesource.com/c/website/+/381654
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-02-08 23:38:54 +00:00
Ian Lance Taylor 3547304864 _content: change generic min example to index
This avoids importing the constraints package, which is no longer in
the standard library.

For golang/go#50792

Change-Id: I0e0f48d414e87418a1fe95e500bb7629127007cc
Reviewed-on: https://go-review.googlesource.com/c/website/+/383254
Reviewed-by: Eli Bendersky‎ <eliben@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Trust: DO NOT USE <iant@google.com>
Run-TryBot: DO NOT USE <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-08 21:47:17 +00:00
Katie Hockman b7142a0d79 _content/doc/fuzz: describe the nature of a failure
Updates golang/go#51032

Change-Id: Iec7965f8d2823e7918967e0fae8425e0b1cc615e
Reviewed-on: https://go-review.googlesource.com/c/website/+/383454
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <bracewell@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Run-TryBot: DO NOT USE <katiehockman@google.com>
2022-02-08 19:37:47 +00:00
Andrey 777b489be0 _content/doc/tutorial/generics: add indentation inside function
Change-Id: I5648e2da0b708bf35e4406f4dcb49eabe01abf92
GitHub-Last-Rev: 009bc861a3
GitHub-Pull-Request: golang/website#122
Reviewed-on: https://go-review.googlesource.com/c/website/+/381917
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Cherry Mui <cherryyz@google.com>
2022-02-08 17:46:20 +00:00
Eli Bendersky ac99473d6b _content/doc: update generics tutorial to not mention constraints package
Following decision in golang/go#50792

Change-Id: I71d74b4b386aacef5319663c397479cac6feb32f
Reviewed-on: https://go-review.googlesource.com/c/website/+/383694
Reviewed-by: DO NOT USE <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2022-02-08 16:42:58 +00:00
Ian Lance Taylor 617d83c5d4 _content/ref/mod: "go 1.16" is the default in go.mod
Fixes golang/go#47662

Change-Id: Ie4d327a48d426ce1cd4a5bd411186143fecf00e1
Reviewed-on: https://go-review.googlesource.com/c/website/+/381895
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: DO NOT USE <iant@google.com>
2022-02-01 20:14:26 +00:00
Michael Matloob 884feaf4b4 _content/ref: update ref/mod for workspaces
Add entries for go.work files and the new go work commands to
golang.org/ref/mod.

For golang/go#45713

Change-Id: I1ad3335f977fad864d75790e31e48ee34e531ff5
Reviewed-on: https://go-review.googlesource.com/c/website/+/379655
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Michael Matloob <michaelmatloob@gmail.com>
2022-02-01 17:07:52 +00:00
Katie Hockman feaf54d44c _content/doc/tutorial: add additional descriptions to fuzz.md
Change-Id: I4278ae598a503d1e036371069f07a1be19e11a93
Reviewed-on: https://go-review.googlesource.com/c/website/+/381794
Run-TryBot: Katie Hockman <katie@golang.org>
Trust: DO NOT USE <katiehockman@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-02-01 17:01:27 +00:00
Russ Cox 663e3e7eda _content: add blog/go1.18beta2
Change-Id: I984c66d758db7103dcaa097bc82f146349634d22
Reviewed-on: https://go-review.googlesource.com/c/website/+/382056
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2022-01-31 20:06:46 +00:00
Rob Pike a26b85f08f content/doc: add an explanatory preamble to Effective Go
Explain that Effective Go is not a living document.
No changes other than one new paragraph in the
introduction.

Fixes golang/go#49937
Update golang/go#28782

Change-Id: I615e48df56313e3d91e8b88b139159f64900db7e
Reviewed-on: https://go-review.googlesource.com/c/website/+/380634
Reviewed-by: DO NOT USE <iant@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
2022-01-30 22:05:33 +00:00
Ian Lance Taylor 3ff88697a8 _content/blog/why-generics: add note that this uses an old syntax
Also some minor text and formatting updates.

Change-Id: I0716d6714e9558ac744d9929adaa0a92b63e36e3
Reviewed-on: https://go-review.googlesource.com/c/website/+/380574
Reviewed-by: Robert Griesemer <gri@google.com>
Trust: DO NOT USE <iant@google.com>
2022-01-25 00:57:32 +00:00
Rob Pike cf8a562e10 blog: update laws of reflection article
There were a couple of minor things that were slightly wrong due to
changes in the libraries, and the addition of generics makes the meaning
of an interface worth clarifying.

Add an introductory paragraph about generics, and adjust a few
sentences.

No substantive change.

Fixes golang/go#49939

Change-Id: I67fbd28f1a9876158006202bf03ea693265c5cd5
Reviewed-on: https://go-review.googlesource.com/c/website/+/380276
Reviewed-by: DO NOT USE <iant@google.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
2022-01-24 18:22:31 +00:00