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

744 Коммитов

Автор SHA1 Сообщение Дата
Ian Lance Taylor eed5cfb0c7 _content/blog: add deconstructing type parameters
Change-Id: I27784eb8c940a7c73a15f20e9cf5d63d3c309162
Reviewed-on: https://go-review.googlesource.com/c/website/+/530678
Reviewed-by: Eli Bendersky <eliben@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-09-26 22:02:49 +00:00
Suzy Mueller f8747b4bbb _content/tour: improve color contrast for dark theme
Updated the color to improve the color contrast when using dark
mode. More or less tried to pick a lighter color of the light
mode color.

Color contrast changes:
- cm.atom: 1.02 -> 6.26
- cm.comment: 2.42 -> 7.6

Fixes golang/go#63229

Change-Id: Ie6257b71d32d8cccf11025e74108e80ae4f9b36d
Reviewed-on: https://go-review.googlesource.com/c/website/+/531215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-09-26 18:14:53 +00:00
Olaf Alders bd16446df0 _content/doc/modules/layout: fix typo in example file name
Change-Id: Ib8d73e5a636b36cc468d1d8b23bef660f8740f7d
GitHub-Last-Rev: a357c1c9ce
GitHub-Pull-Request: golang/website#251
Reviewed-on: https://go-review.googlesource.com/c/website/+/529736
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-09-20 19:30:58 +00:00
Russ Cox 1c0274a862 _content/blog/loopvar-preview: fix Let's Encrypt link
Change-Id: I2b11c98f7ba064752a0a388e81e0a4b7e1be7a3b
Reviewed-on: https://go-review.googlesource.com/c/website/+/529478
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-09-20 18:17:39 +00:00
Chressie Himpel b4564f4a8c _content/blog: fix a typo in loopvar-preview summary
s/one the most/one of the most/

Change-Id: I196ac2a597713ea71da2d7af5b1e582114a95d71
Reviewed-on: https://go-review.googlesource.com/c/website/+/529096
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-09-20 13:23:20 +00:00
Johan Brandhorst-Satzkorn eda40a422b _content/blog: fix link in loopvar-preview post
A link to the Go release policy was broken. Fix it.

Change-Id: Idd158e32063a07d2924c1cdf50a0293e0a891a70
Reviewed-on: https://go-review.googlesource.com/c/website/+/529257
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Tim King <taking@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-09-19 22:34:12 +00:00
Russ Cox fc37bf9d92 _content/blog: add loopvar-preview
Change-Id: I9f83e918e2cc2ad3d8209aae706f22dce7df2f45
Reviewed-on: https://go-review.googlesource.com/c/website/+/529476
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-09-19 19:04:14 +00:00
Russ Cox d95346cd31 _content: add blog link to go.dev/rebuild
Change-Id: I083c0753c43020c5d3a03818893ef203afa77652
Reviewed-on: https://go-review.googlesource.com/c/website/+/524395
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-09-19 17:40:18 +00:00
Eli Bendersky df06bf701c _content/doc: add guide for organizing a Go module (project layout)
Change-Id: I2092a70e0be3dbbd08d0b13c4bd4bd073a504cde
Reviewed-on: https://go-review.googlesource.com/c/website/+/529415
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-09-19 15:56:02 +00:00
Johan Brandhorst-Satzkorn feb9e77f0d blog: WASI support in Go
Change-Id: Id140b87d77accf36be641c34c1692cb245b87608
Reviewed-on: https://go-review.googlesource.com/c/website/+/508895
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2023-09-13 16:05:05 +00:00
Hana (Hyang-Ah) Kim 9a8a0a0046 _content/tour/static/js: fix type errors
script.js:694 TypeError: elm.draggable is not a function
    at http://127.0.0.1:3999/tour/script.js:10589:17
    at j (http://127.0.0.1:3999/tour/script.js:675:458)
    at e (http://127.0.0.1:3999/tour/script.js:671:248)
    at e (http://127.0.0.1:3999/tour/script.js:671:265)
    at j (http://127.0.0.1:3999/tour/script.js:675:398)
    at e (http://127.0.0.1:3999/tour/script.js:671:248)
    at http://127.0.0.1:3999/tour/script.js:670:312
    at k (http://127.0.0.1:3999/tour/script.js:782:156)
    at Object.$broadcast (http://127.0.0.1:3999/tour/script.js:722:240)
    at http://127.0.0.1:3999/tour/script.js:714:191 <div vertical-slide="" left="#left-side" right="#right-side">

_content/tour/static/partials/editor.html and _content/tour/static/css
use 'vertical-slide' and 'horizontal-slide'.
I don't know why go.dev does not report these errors.

Change-Id: I9e0f5bb2540af8e642281d7c350f57b69195624a
Reviewed-on: https://go-review.googlesource.com/c/website/+/527080
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-09-12 19:08:11 +00:00
Hana (Hyang-Ah) Kim bc602d6062 _content/tour/static/lib: sync jquery@3.7.0 jquery-ui@1.13.2
curl https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js > jquery.min.js
curl https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js > jquery-ui.min.js

Change-Id: I50d2d5aa5eceaf32ecd27abcd1c4a44be6d305d8
Reviewed-on: https://go-review.googlesource.com/c/website/+/527079
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-09-12 18:54:39 +00:00
Michael Anthony Knyszek 735d0fbb0e _content/doc: discuss transparent huge pages in the GC guide
For golang/go#8832.
For golang/go#55328.
For golang/go#61718.

Change-Id: I1ee51424dc2591a84f09ca8687c113f0af3550d1
Reviewed-on: https://go-review.googlesource.com/c/website/+/526615
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-11 17:03:41 +00:00
Robert Findley bb7347fef2 _content/blog/gopls-scalability: fix missing package name qualifier
Add a missing package name qualifier to the precise pruning diagram.

Change-Id: I6796ac0580b501f7b3f967e25967784b46bc7872
Reviewed-on: https://go-review.googlesource.com/c/website/+/527035
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-08 18:40:34 +00:00
Rob Findley 45145578b7 _content/blog: gopls scalability blog post
Add a new blog post describing some of the scalability work we've been
doing for gopls.

Change-Id: Id9a9a328b2e29499d635d36e96f753f9a4787978
Reviewed-on: https://go-review.googlesource.com/c/website/+/520995
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-08 17:19:43 +00:00
Michael Pratt 967d7e407b _content/blog/pgo: add PGO blog post
Change-Id: I2b674154bc6596965e1d864bbf234a5774c91494
Reviewed-on: https://go-review.googlesource.com/c/website/+/524795
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-05 17:25:34 +00:00
Ian Lance Taylor 8f7c30f130 _content/solutions/cloud: update link to book
Fixes golang/go#62416

Change-Id: I5addf47161c8816069db1f7779b7ba8e815d618d
Reviewed-on: https://go-review.googlesource.com/c/website/+/525177
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-02 00:45:10 +00:00
Hana (Hyang-Ah) Kim 74e803dd33 _content/blog: correct go work use usage
And drop the link to the Go project contribution guide
which is not necessary.

Change-Id: Ied0e433a4e1949716e1955054bd7af8ab902e433
Reviewed-on: https://go-review.googlesource.com/c/website/+/525155
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
2023-09-01 19:47:14 +00:00
Matthew Dempsky ca1fc50a3b _content/doc/comment: mention "reports whether" idiom
Mention the idiom of using "reports whether" to describe functions
that return a boolean.

While here, replace several uses of "func" with "function". In the Go
spec, "func" is a keyword used in function declarations and function
literals, but the declared object is always referred to as a
"function".

Also, change "arguments" to "parameters". Again, in the Go spec,
"arguments" is used to describe the operands that appear in a call
expression, whereas "parameters" are the objects declared in a
function signature.

Change-Id: I01dfafd05af1852a8d2056bdabbda1e2bcc8cbb7
Reviewed-on: https://go-review.googlesource.com/c/website/+/524956
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-01 07:02:54 +00:00
Ian Lance Taylor 2bbd800a01 _content/doc/comment: document removal of common prefix
Fixes golang/go#61373

Change-Id: I60fa1be13cb7e32af5169e303f5e1c40d207edc4
Reviewed-on: https://go-review.googlesource.com/c/website/+/524039
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-08-31 00:55:40 +00:00
Ian Lance Taylor fa6fe8b9e9 _content/doc/go1.21: mention encoding/binary.NativeEndian
For golang/go#57237
Fixes golang/go#62349

Change-Id: I2407281b1635e3689f6e225da2ea7f562f321203
Reviewed-on: https://go-review.googlesource.com/c/website/+/524675
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-08-31 00:16:05 +00:00
Dmitri Shuralyov 0daeb8a107 _content/blog: fix list item formatting in rebuild.md
It was meant to be one bullet point, not two.

Change-Id: I113f1cef44319f95aff110c6f3ef1d1dad9a69b2
Reviewed-on: https://go-review.googlesource.com/c/website/+/524396
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
2023-08-30 21:41:25 +00:00
Russ Cox 4f91f9e3eb _content/blog: add rebuild
Change-Id: I424b79460e903392f73270ee68fe88fc0ba49811
Reviewed-on: https://go-review.googlesource.com/c/website/+/523635
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-28 17:55:14 +00:00
Deleplace 6fcd42d2ce _content: apply white color in transparent gopher, for dark theme.
Fixes golang/go#62316

Change-Id: I5bda00629a5de3e3266911c0c518b6c2078e4b97
Reviewed-on: https://go-review.googlesource.com/c/website/+/523415
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-28 15:17:07 +00:00
Michael Pratt 979dfe99a8 _content/doc/pgo: mention PGO tools wiki page
Change-Id: Id1ce731a377173b15bc7398a1f4b6d7cfb06e2c0
Reviewed-on: https://go-review.googlesource.com/c/website/+/523495
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
2023-08-28 14:35:12 +00:00
Eli Bendersky b3ac5e3658 _content/blog: fix link to sample in h2push post
The link pointed to the old home of the blog.
Moreover, in the new world of modules, `go get` isn't a very convenient
way to obtain samples, so pointing directly to the code repository
instead.

Change-Id: I2dca199cf817920347445a5db17521a349a93c64
Reviewed-on: https://go-review.googlesource.com/c/website/+/522677
Run-TryBot: Eli Bendersky <eliben@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-25 16:25:24 +00:00
Ian Lance Taylor b94b1663e6 _content: correct pkg.dev.go links to pkg.go.dev
Fixes golang/go#62225

Change-Id: I6de01f1176494d3c83c638333194201013e21f85
Reviewed-on: https://go-review.googlesource.com/c/website/+/522075
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
2023-08-23 13:47:51 +00:00
Jonathan Amsterdam 5a066bd7e3 _content/blog/slog.md: blog post for log/slog
Change-Id: Ia4c4a4f0ea5e635393e205874aad62de14811eec
Reviewed-on: https://go-review.googlesource.com/c/website/+/518017
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Seth Vargo <sethvargo@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
2023-08-22 15:42:44 +00:00
Eli Bendersky 07cc88f98d _content/doc/go1.21: fix anchor name typo in link
Reported by Jochen Voss on the golang-nuts list

Change-Id: Ic0986948c13b30ce98a4bb763da883ab4fafd76b
Reviewed-on: https://go-review.googlesource.com/c/website/+/520215
Run-TryBot: 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>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
2023-08-17 12:37:07 +00:00
yuuji.yaginuma 50ad5fc9ac _content/doc/go1.21: remove redundant close bracket
This added by https://go-review.googlesource.com/c/go/+/500956. But there is not an open bracket.
I assume this is just a typo.

Change-Id: I3609db7cc628ddd3bf24573d409185802f425e45
GitHub-Last-Rev: f0f00d306b
GitHub-Pull-Request: golang/website#241
Reviewed-on: https://go-review.googlesource.com/c/website/+/519015
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2023-08-16 02:09:50 +00:00
Dmitri Shuralyov b1f8652375 _content/doc: update go.dev/doc/toolchain's backport description
Match the behavior as implemented in CL 518675 and CL 518815,
and ready to be released in the next set of minor releases.

For golang/go#57001.

Change-Id: I4404530994e636173f636aefb83bd64e208eba3c
Reviewed-on: https://go-review.googlesource.com/c/website/+/519216
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-15 17:10:11 +00:00
Russ Cox b4f95f9960 blog: add a pair of posts, compat and toolchain
Change-Id: Ia05eedfb1ed2ef6104b944ed3ffd94536ee99cd0
Reviewed-on: https://go-review.googlesource.com/c/website/+/519215
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
2023-08-14 16:09:08 +00:00
tcdsv 2128396a0d _content/doc/tutorial: remove mention of init function
the init function is removed from the code example: f7341273fe

Change-Id: Id247fed6f46ad83e47c9871519ed8001dca79c62
GitHub-Last-Rev: 012feea9eb
GitHub-Pull-Request: golang/website#230
Reviewed-on: https://go-review.googlesource.com/c/website/+/507096
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>
Reviewed-by: Robert Findley <rfindley@google.com>
2023-08-10 19:27:04 +00:00
Suzy Mueller 74679e8775 _content/security/vuln: fix VS Code settings documentation
Update docs to use the preferred settings style for VS Code.

Fixes golang/go#61633

Change-Id: I2eb079bbc5a65a99330adcabe38b3bb315dc2402
Reviewed-on: https://go-review.googlesource.com/c/website/+/517776
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-08-10 16:11:29 +00:00
Alexander Yastrebov ed47ec0cac _content/doc/go1.21: fix links
* fix godebug link
* fix spec links

Fixes golang/go#61880

Change-Id: If705e27c297285199fe970927fdf31b66831bff1
GitHub-Last-Rev: ca5255e3a4
GitHub-Pull-Request: golang/website#239
Reviewed-on: https://go-review.googlesource.com/c/website/+/517860
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2023-08-10 15:19:20 +00:00
Prudhvi Krishna Chintala 343057cab4 _content: added 'ESC' event handler to avoid focus trap.
https://screencast.googleplex.com/cast/NTYwNTg4MTkwODU1OTg3Mnw3Mzg5NzAyNi04Ng

Change-Id: I4246a560be1dbbd1f7a8126715940373249f5ac8
Reviewed-on: https://go-review.googlesource.com/c/website/+/517778
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-08-10 11:36:36 +00:00
Russ Cox 6cc10c446b _content: make "Press Esc to move out of the editor" message stop flickering
It's distracting to have this "Press Esc to move out of the editor"
message flicker on and off as focus shifts around the pages, especially
since it moves everything else up and down.

Make the message permanent and unobtrusive instead.

Change-Id: Iabe7a723f01ff2b54c49b3ef1214a1787b2751cd
Reviewed-on: https://go-review.googlesource.com/c/website/+/517695
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Prudhvi Krishna Chintala <prudhvikrishna@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-09 16:33:15 +00:00
Ian Lance Taylor 98d0ae50c7 _content/doc/go1.21: fix grammar error
Fixes golang/go#61855

Change-Id: I7affe4337395c5f6cddb07ca92eef6249806100a
Reviewed-on: https://go-review.googlesource.com/c/website/+/517217
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-08-08 21:32:15 +00:00
Robert Griesemer 4011a97385 website: fix minor grammatical mistake in comparable.md
Change-Id: I051e221eaeee5f29df281fdf6c8bc88873cadadd
Reviewed-on: https://go-review.googlesource.com/c/website/+/490095
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-08-08 20:58:46 +00:00
Ian Lance Taylor c5f035074e _content/doc/go1.21: correct Buffer.AvailableBuffer link
Fixes golang/go#61861

Change-Id: Iaeac7e4ce427f98b6fc3faa10403620430c06e44
Reviewed-on: https://go-review.googlesource.com/c/website/+/517375
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2023-08-08 20:17:28 +00:00
Ian Lance Taylor a5040e7bce _content/doc/go1.21: correct grammar error
Fixes golang/go#61854

Change-Id: Ia53bb95150901ccecf038962577e9eaa30755f16
Reviewed-on: https://go-review.googlesource.com/c/website/+/517255
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-08 20:04:58 +00:00
Koya IWAMURA d6072af1f2 _content/doc: fix link in Go1.21 Release Notes
Change-Id: Iac71701b32ab529a0fa6f16fd711045093820112
GitHub-Last-Rev: cf450d727e
GitHub-Pull-Request: golang/website#238
Reviewed-on: https://go-review.googlesource.com/c/website/+/517115
Reviewed-by: t hepudds <thepudds1460@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: t hepudds <thepudds1460@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-08 19:06:12 +00:00
Eli Bendersky 5872eae16b blog: add Go 1.21 announcement
Change-Id: I66dab03d7ce4a2d5a8cbf759d77a50999a375e3a
Reviewed-on: https://go-review.googlesource.com/c/website/+/512055
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-08-08 15:50:49 +00:00
Michael Anthony Knyszek cbd53f2c11 _content/doc/go1.21.html: add note about panic nil behavior
For golang/go#25448.

Change-Id: I775ad6d8d8952da8fa94c39c44a2420501b63b57
Reviewed-on: https://go-review.googlesource.com/c/website/+/517036
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
2023-08-08 15:39:58 +00:00
Michael Anthony Knyszek 958dd998bd internal/history: add Go 1.21, remove release notes draft notice
Also, update the golangorg deployment to use the Go 1.21 release branch.

Fixes golang/go#58645.

Change-Id: Ic83bbd34da083fd0358e4e345fdb02781cab43d6
Reviewed-on: https://go-review.googlesource.com/c/website/+/517035
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-08 14:28:30 +00:00
Mauri de Souza Meneguzzo 315f653c94 _content/doc: copypaste.js included more than once
The copypaste js script is included twice, once in the site.tmpl and a second time in install.html.

Change-Id: I5ba7cefa0e4a9f209adebd0cda8c3f855dc40f3f
GitHub-Last-Rev: 6490c1773c
GitHub-Pull-Request: golang/website#235
Reviewed-on: https://go-review.googlesource.com/c/website/+/516415
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Nooras Saba‎ <saba@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-08-08 00:31:44 +00:00
Prudhvi Krishna Chintala 2c2263031c _content: made content activated by mouse dismissible using ESC key
https://screencast.googleplex.com/cast/NTcyNjIwNDA4MTQ3MTQ4OHwxOTQwNzQyNS04ZA

Change-Id: I4c804d97c7485cf75ea16260a6d4143cf0a70f69
Reviewed-on: https://go-review.googlesource.com/c/website/+/516196
Reviewed-by: Neelesh Bodas <neelesh@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-08 00:25:38 +00:00
prudhvikrishna e98120d599 _content/css: fix for icon to appear in High Contrast Light Mode
https://screencast.googleplex.com/cast/NTUwNDM3ODE0NzQzODU5Mnw3ZDI4OTZhMy03ZA

Change-Id: Id0b179d91b9a099adc2af28ffa18b7eaa68b8508
Reviewed-on: https://go-review.googlesource.com/c/website/+/506677
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-08-07 21:06:47 +00:00
Dominik Honnef 4136cf8c34 _content/security/fuzz: tweak example for running file2fuzz
When running file2fuzz without any arguments it will read from stdin.
This might confuse users who copy the commands from the example,
expecting something to happen. Suggest running it with -h instead.

Change-Id: I50cc776af66af5126fb283dee228df644c6e340d
Reviewed-on: https://go-review.googlesource.com/c/website/+/401954
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Dominik Honnef <dominik@honnef.co>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dominik Honnef <dominik@honnef.co>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-08-04 22:13:27 +00:00
David Chase 01ef4053a2 _content/doc: add CL 514997 to list in QUIC comment for go1.21.html
Change-Id: I9649bd9b02cb36b843acbe30b467de1ebfa52c38
Reviewed-on: https://go-review.googlesource.com/c/website/+/516135
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-08-04 18:47:31 +00:00
David Chase 1f6ba5cfa8 _content/doc: add Go 1.21 release notes
Copied from the main Go repo at CL 515955.
Deleted there in CL 516075.

For golang/go#58645.

Change-Id: If91f782f6429a53cbc52e0e37fbad88fb80db006
Reviewed-on: https://go-review.googlesource.com/c/website/+/516095
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-08-04 18:16:34 +00:00
prudhvikrishna 7efaa41d53 _content: fix for screen reader to announce links open in new window.
Change-Id: Ic2498cf765722cb1d914c37a2b544ae1f4bd6e08
Reviewed-on: https://go-review.googlesource.com/c/website/+/512095
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Prudhvi Krishna Chintala <prudhvikrishna@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-08-03 21:30:56 +00:00
luisglopez7777 80138e489b _content: add dark mode to go.dev/tour
Change-Id: I8fe87632b3f863fc80290537a428c884a232f280
Reviewed-on: https://go-review.googlesource.com/c/website/+/509116
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-03 13:41:10 +00:00
Dmitri Shuralyov 4c82633110 _content: fix gorebuild import path
Somehow I looked directly at the URL and thought whether it'd be better
for the https://pkg.go.dev/golang.org/x/build/cmd/gorebuild link
to be shortened to https://golang.org/x/build/cmd/gorebuild or not¹,
yet completely failed to notice that it said tools instead of build.
Whoops!

¹ The upsides are that it's shorter and lets the package stay in control
  for deciding what it's "home" is, but the downside is that in practice
  it has no effect and just adds an extra redirect.

Change-Id: I43b02a7eb6405a0b7700c522cdd6a7939bcf9f1c
Reviewed-on: https://go-review.googlesource.com/c/website/+/515240
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2023-08-03 04:27:01 +00:00
Russ Cox e5f882dc95 cmd/golangorg: fix CachedURL, update rebuild template
The "not modified" response code is 304, not 206. Oops.
Use named constants to avoid similar mistakes in the future.

Also update rebuild template to show more version information.

For golang/go#57120.
For golang/go#58884.

Change-Id: I2c3ddf25cede0b5a853fa971226463a997f168c7
Reviewed-on: https://go-review.googlesource.com/c/website/+/515455
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-08-03 04:10:03 +00:00
Russ Cox 1e75b26cba _content: add rebuild page with reproducible build information
We now have a command to reproduce Go builds posted on go.dev/dl.
Add a dashboard that people can check to see its results.
We should be able to link to this page from https://reproducible-builds.org/citests/.

For golang/go#57120.
For golang/go#58884.

Change-Id: I0bd1f9c26a9a003aa1f301125083195fdeb048b4
Reviewed-on: https://go-review.googlesource.com/c/website/+/513700
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-08-03 02:08:39 +00:00
Russ Cox c999d51337 _content: update for golang.org/x/example changes
golang.org/x/example/stringutil.Reverse moved to
golang.org/x/example/hello/reverse.String.
Update references accordingly.

Fixes golang/go#61722.

Change-Id: Ib041697bc1c5c40d2b6ccefc7550caaedf338b2d
Reviewed-on: https://go-review.googlesource.com/c/website/+/515238
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
2023-08-03 02:08:24 +00:00
Suzy Mueller 496c979d26 _content/doc/tutorial: fix vulncheck tutorial links
Fixes golang/go#61663

Change-Id: I46a4c0f74aa8c64b7d1eee73b9533c56f8ef8233
Reviewed-on: https://go-review.googlesource.com/c/website/+/514635
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
2023-07-31 22:49:54 +00:00
Cameron Balahan abdc8f0e80 Fixing an error in the way commands are displayed in the gonew blog post
Change-Id: Ic6893334e813a5e79c99a1561da977d9ae5e319c
Reviewed-on: https://go-review.googlesource.com/c/website/+/514555
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-31 18:53:44 +00:00
Cameron Balahan edbee6f9dd _content/blog: Adding blog post for gonew command
Change-Id: Idcb4569ac86831472f771302773e317f7b903581
Reviewed-on: https://go-review.googlesource.com/c/website/+/514475
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2023-07-31 18:03:31 +00:00
prudhvikrishna 60cac895de _content: fix for links to have underline on keyboard focus
Change-Id: I373e92ffe1f245eb0bd5b696d9885fe290f1b326
Reviewed-on: https://go-review.googlesource.com/c/website/+/506676
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Prudhvi Krishna Chintala <prudhvikrishna@google.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2023-07-28 18:03:51 +00:00
prudhvikrishna b424f0c6d0 _content/css: provide fix for text to meet the color contrast
requirements

https://screenshot.googleplex.com/8RiRhFfeua2HQM8.png
https://screenshot.googleplex.com/fTHSYz3NnJ7YPDN.png

Change-Id: I04d00b4468e93f93ea418cb11df01976b150fb80
Reviewed-on: https://go-review.googlesource.com/c/website/+/506375
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2023-07-28 18:03:48 +00:00
Mauri de Souza Meneguzzo c860785947 _content: fix error preventing some features to load in dl page
There was an error when setting up the callback for page load in the /dl page, preventing some features to load properly. The error was due to some methods being invoked for the playground textarea field, that for this specific page is not in the dom.

Updated the logic for page load to wait for dom content loaded or check document.readyState since the page might be loaded already when we try to set up the callback.

Fixes: golang/go#61587

Change-Id: I82508a2661167af19b1b4375c66b46ae50c08617
GitHub-Last-Rev: 8415de173b
GitHub-Pull-Request: golang/website#234
Reviewed-on: https://go-review.googlesource.com/c/website/+/513315
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-07-26 20:21:15 +00:00
Todd Kulesza 5c08bf3ee6 _content/blog: add 2023 h2 survey blog post
Change-Id: Ib496be2ec4045eb47532502bb5cff04588960df4
Reviewed-on: https://go-review.googlesource.com/c/website/+/511661
Run-TryBot: Todd Kulesza <tkulesza@google.com>
Reviewed-by: Cameron Balahan <cbalahan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-25 16:28:50 +00:00
thepudds a9171478a6 _content/doc/contribute: make it clear a Gerrit account is required even when sending a GitHub PR
It's possible to read the current "Sending a change via GitHub"
section of the Contribution Guide as saying a Gerrit account
is optional when sending a GitHub PR.

Some of the friction listed by Bryan in discussion golang/go#61182
is likely the result of some GitHub users never registering for
Gerrit after they send their PR, such as:

  "A significant fraction of GitHub PRs are abandoned when
  the author does not respond to Gerrit comments"

This CL therefore attempts to make it clear a Gerrit account
is a requirement even when sending a PR via GitHub, which
might reduce a modest amount of friction.

See golang/go#61323 for additional background.

While we are here, we also suggest the PR author familiarize themselves
with Gerrit, which increases the likelihood of success for their
own PR, but also might help them eventually graduate to a pure Gerrit
workflow for future contributions or possibly open their eyes
to the benefits of doing basic gardening.

For example, starring and then following interesting CLs is a
great way to learn for a new contributor (but not as well known
a feature as it could be).

In addition, we add a link to the FAQs for the GitHub PR workflow,
which covers things like "why do I need a Google account for Gerrit?".

We also define the term "CL" and then purposefully use it. The
contribution guide currently does not use that term, but
some evidence suggests someone going through the GitHub PR workflow
can struggle a bit with the difference between the PR vs. the CL,
or generally be confused and ask questions like "what is a CL?".

(The Contribution Guide previously used the term "CL", but without
defining it. golang/go#18989 suggested defining the term,
though the resolution of that issue in CL 36564 instead
removed "CL" entirely from the contribution guide).

Fixes golang/go#61323

Change-Id: I7d16a8cfd357ec4dd441a6ca43fc2a0caf55cdfe
GitHub-Last-Rev: ce92b735e8
GitHub-Pull-Request: golang/website#232
Reviewed-on: https://go-review.googlesource.com/c/website/+/509019
Run-TryBot: t hepudds <thepudds1460@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-20 19:36:40 +00:00
prudhvikrishna 35ea40d93a _content: provide keyboard shortcut to avoid focus trap.
added 'Esc' key as shortcut to avoid focus trap for code editor in go   website.
https://screencast.googleplex.com/cast/NjM1MDM3ODI1MDUzNDkxMnwyMDllNGZlNi0yZA

Change-Id: I291505a335ddaa04fc440d2d3052e6b9a891f86f
Reviewed-on: https://go-review.googlesource.com/c/website/+/510875
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
2023-07-20 18:18:36 +00:00
Cherry Mui 9bc7ea507e _content/doc/install: mention GOOS=wasip1
Updates golang/go#58141.

Change-Id: I7cfa8045ad9d27f1cc97bffb4ee2ac1a8c79e7c1
Reviewed-on: https://go-review.googlesource.com/c/website/+/495535
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Achille Roussel <achille.roussel@gmail.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Tianon Gravi (Andrew) <admwiggin@gmail.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
2023-07-18 19:58:56 +00:00
prudhvikrishna 3335334ecb _content: provide skiplink to go website
added skiplink to skip over the navigation and header elements of the
page and go directly to the main content.

https://screencast.googleplex.com/cast/NjUzMzAxNTk2MzQzNTAwOHxmYjc5NGE4OS1iMQ

Change-Id: I58271abacfcd80a2e996e83c6ad7611711989e92
Reviewed-on: https://go-review.googlesource.com/c/website/+/508975
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>
2023-07-17 21:18:10 +00:00
prudhvikrishna 647c4b2c5a _content: fix for dropdown to not autoopen when receive focus
Change-Id: Iee3897aa4f5c1311141411ec44193751cb516e4d
Reviewed-on: https://go-review.googlesource.com/c/website/+/509857
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2023-07-17 15:45:47 +00:00
prudhvikrishna 57cac55d24 _content: make purpose of buttons clear to screen reader users
Fix to make screen reader users understand the purpose of Get started   and download buttons

Change-Id: Ia8c75721a57a503c8659db328343f4dd5ac98ed8
Reviewed-on: https://go-review.googlesource.com/c/website/+/506999
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Nooras Saba‎ <saba@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-17 15:40:36 +00:00
prudhvikrishna f7c0397718 _content: make purpose of link clear to screen reader users
Added fix for screen reader users to understand the
purpose of links.

Change-Id: I636f75bc334ac97f2bc2e88ad63c09b8e3bf8888
Reviewed-on: https://go-review.googlesource.com/c/website/+/507455
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Neelesh Bodas <neelesh@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Nooras Saba‎ <saba@golang.org>
Reviewed-by: Prudhvi Krishna Chintala <prudhvikrishna@google.com>
2023-07-17 15:40:23 +00:00
ariathaker 1314c885b7 _content/security: Added Best Practices to index
Added a link to the Security Best Practices guide to the go.dev/security page.

Change-Id: Ie5282d45f574ea2ea6cb4c501140d7cc27b415e7
Reviewed-on: https://go-review.googlesource.com/c/website/+/509715
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
2023-07-14 13:38:24 +00:00
Brandon Kessler 92acdba308 Fixes the the govulncheck command to have the correct ./...
Change-Id: I6db7be6cc52af16df4e9a4cdaf7d2fc185ba3e98
Reviewed-on: https://go-review.googlesource.com/c/website/+/508923
Run-TryBot: Brandon Kessler <bkessler@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2023-07-13 16:46:50 +00:00
Julie Qiu 55b8547509 _content/blog: add govulncheck blog post
Change-Id: Ie33a23d8ebf82b21c1eec8128049274ba4e30d6a
Reviewed-on: https://go-review.googlesource.com/c/website/+/509295
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
Run-TryBot: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-13 15:19:57 +00:00
Brandon Kessler b5d06d8355 Fixes a typo on the govulncheck tutorial
Typo causes an extra code block to appear

Change-Id: I0912c53e5ca5aed1a6435d61db6c16b7de239d8b
Reviewed-on: https://go-review.googlesource.com/c/website/+/509375
Run-TryBot: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-13 15:19:01 +00:00
ariathaker 2eb5f573e8 _content/security: add best practices guide
Added Security Best Practices guide for Go Developers.

Change-Id: I3e5da9f3fbf26e4a726849558a65adc6ba6cd97f
Reviewed-on: https://go-review.googlesource.com/c/website/+/509118
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-13 13:59:17 +00:00
prudhvikrishna cef597aeee _content: fix heading level hierarchy
Change-Id: Icb333a465491af0c70bdfc5c1134a2c707711f12
Reviewed-on: https://go-review.googlesource.com/c/website/+/506997
Reviewed-by: Neelesh Bodas <neelesh@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Prudhvi Krishna Chintala <prudhvikrishna@google.com>
Reviewed-by: Nooras Saba‎ <saba@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-07-12 19:29:51 +00:00
Than McIntosh 01ff1375ee _content/doc/articles/race_detector: document windows C compiler version requirements
Add a note documenting the requirement (as of Go 1.21) on Windows that
the installed C compiler support mingw-w64 version 8 or later, which
provides libsynchronization.a.

Fixes golang/go#61058.

Change-Id: I891d7d32df41387e1671a1ec9bac722c47a68ee5
Reviewed-on: https://go-review.googlesource.com/c/website/+/508461
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
2023-07-11 18:19:51 +00:00
ariathaker 30c348fd11 _content/doc/tutorial: Added tutorials to index
Added the tutorials for govulncheck and VS Code Go to the table on the tutorial index page

Change-Id: Ib5d64fdfb7b92ed5769a421b8c2dfde38220794b
Reviewed-on: https://go-review.googlesource.com/c/website/+/508316
Reviewed-by: Brandon Kessler <bkessler@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>
2023-07-10 17:05:25 +00:00
ariathaker e791658b0c _content/security: Add tutorials to Security page
Added links for govulncheck tutorial and VS Code Go to security index page.

Change-Id: I49e2441ff62811604243e116788a235bab1fbb20
Reviewed-on: https://go-review.googlesource.com/c/website/+/508315
Run-TryBot: Julie Qiu <julieqiu@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-07-07 14:17:10 +00:00
Eli Bendersky 32a21a08d0 doc/faq: update out-of-date mention of gollvm
gollvm is mentioned elsewhere in the FAQ too, but this specific mention
seems out-of-date now given the state of the project.

Change-Id: I5be12faeaf9ea445fc4c28eecb7583fda0adb457
Reviewed-on: https://go-review.googlesource.com/c/website/+/507959
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Eli Bendersky <eliben@google.com>
Run-TryBot: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-07-06 17:51:27 +00:00
ariathaker ea9861c44c _content/doc/tutorial: Added VS Code Go tutorial
Added tutorial on vulnerability scanning in IDE with VS Code Go, with images.

Change-Id: I68bbd5cd6d1bf277ac37f1fa1069eb09aef3fb04
Reviewed-on: https://go-review.googlesource.com/c/website/+/505776
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Brandon Kessler <bkessler@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-06-29 16:45:50 +00:00
Michael Pratt ef4c8eb0da _content/doc/pgo: update for Go 1.21
Fixes golang/go#60757.

Change-Id: Ifb56ce3f5bc944443bb023c0653ec3eb5680ef69
Reviewed-on: https://go-review.googlesource.com/c/website/+/506878
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-06-28 21:08:12 +00:00
Valentin Deleplace f1cf0b8cea _content: update A Tour of Go description
Fixes golang/go#59167

Change-Id: Ib433ac314e1ad58b6f0a74ca346e49e53834df95
Reviewed-on: https://go-review.googlesource.com/c/website/+/478395
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-06-28 20:49:08 +00:00
Russ Cox f4bac3ba7f _content: add brand guidelines page: https://go.dev/brand
In 2018 Google filed for a trademark on the new Go Logo
(https://go.dev/blog/go-brand) and the word Go in the context of
programming languages (more specifically "Computer programs and
downloadable computer programs, namely compilers and reference
libraries, that implement a statically typed, compiled computer
programming language for use in developing, building and managing
other software.")

Since then we have not provided clear guidance about the permitted
uses of the logo and the word mark Go. This commit adds that guidance,
written by Google's trademark counsel and based on the Open Usage
Trademark Guidelines 0.1.0 [1], adapted for the Go project. We also
adapted some high-level text from the Python Software Foundation's
excellent Trademark Usage Policy [2]. The guidance in this commit will
be served at https://go.dev/brand and linked at the bottom of the menu
under "Brand Guidance" where there is currently a link to the blog
post.

As it says in the new web page, in general, we want the word mark “Go”
and the Go Logo to be used freely to refer to the Go programming
language. It is explicitly not a goal to restrict the many excellent
uses of the word Go in projects today. Instead the goal is to
authorize those excellent uses properly, to avoid any confusion or
doubt about whether they are proper.

As it also says in the new web page, anyone with questions can email
them to trademark@golang.org, which forwards to me and a few other
people at Google, and we will do our best to answer them.

[1] https://openusage.org/trademark-guidelines/
[2] https://www.python.org/psf/trademarks/

Fixes golang/go#58412.

Change-Id: I82aca152a4f33140b6f05eacd256de0d0ee686e9
Reviewed-on: https://go-review.googlesource.com/c/website/+/506756
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-06-28 14:34:57 +00:00
Jamal Carvalho cf517d8748 _content/css: hide cookie banner in print view
Fixes golang/go#60820.

Change-Id: I99943604c8588264f2898b0011b0135778a15628
Reviewed-on: https://go-review.googlesource.com/c/website/+/503879
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-06-21 19:52:22 +00:00
Eli Bendersky 9e8f1cd009 blog: Go 1.21 RC announcement post
Change-Id: I72b71b2b16d5c9e887563dfeae7cab08eeca360f
Reviewed-on: https://go-review.googlesource.com/c/website/+/502796
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eli Bendersky <eliben@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
2023-06-21 19:29:42 +00:00
Michael Stapelberg cf309485de _content: fix quoting in toolchain.md
Change-Id: I49d34c68bcfc31f2ef7d715fbcf65962c942c8d0
Reviewed-on: https://go-review.googlesource.com/c/website/+/503955
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
2023-06-16 11:37:36 +00:00
cui fliter bd3c46f4f9 all: fix some typos
Change-Id: I3ccc952d423f43762853382c2f613995e096e695
Reviewed-on: https://go-review.googlesource.com/c/website/+/502775
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-06-15 19:39:05 +00:00
Max Riveiro a9926fb5ae _content: fix broken Markdown links to /doc/toolchain
Change-Id: I2256da09dcbc20832c5f6c3eb48a884af8ad604a
GitHub-Last-Rev: fa7f86b3b4
GitHub-Pull-Request: golang/website#228
Reviewed-on: https://go-review.googlesource.com/c/website/+/503235
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2023-06-15 17:46:36 +00:00
Andrew Gerrand 781fb19f89 _content: fix anchors in toolchain.md
A couple of anchor hints were declared with parentheses instead of curly
braces.

Change-Id: If1032fbbe31bce0cd6417dae71d748f5ea5ca500
Reviewed-on: https://go-review.googlesource.com/c/website/+/502776
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
2023-06-14 03:51:26 +00:00
Russ Cox 65471dac0a _content: add https://go.dev/doc/toolchain
This documents the new toolchain selection and switching
for the forward compatibility work.

For golang/go#57001.

Change-Id: I0efdac6771018063446dd0db22013c5fd756bea4
Reviewed-on: https://go-review.googlesource.com/c/website/+/500775
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
2023-06-12 18:08:29 +00:00
Jamal Carvalho a124e5d2f0 _content/js: update jQuery
Fixes b/283279391.

Change-Id: I8415954ad62164ace1c6703f03ec8add86a1bee2
Reviewed-on: https://go-review.googlesource.com/c/website/+/500895
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-06-05 15:00:37 +00:00
Hana (Hyang-Ah) Kim c3387da412 _content/security/vuln: fix errors in vscode editor settings
And rearrange the caveats so people know the analysis is done locally.

Change-Id: I15a5265fa6ac4828bf33fbea9002676c75d3ad7b
Reviewed-on: https://go-review.googlesource.com/c/website/+/499922
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2023-06-02 19:52:27 +00:00
Iman Rabbi cdf910f3bc _content/doc/tutorial: remove unused import "time"
`Time` was used by `math/rand.Seed` that is removed

Change-Id: I1d288694c5a92fb866d629d8de3d3cdfa79bbf48
GitHub-Last-Rev: 1485d39c3c
GitHub-Pull-Request: golang/website#226
Reviewed-on: https://go-review.googlesource.com/c/website/+/497835
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-24 22:38:27 +00:00
Iman Rabbi 6badb8a309 _content/doc/tutorial: remove unused import "time"
`Time` was used by `math/rand.Seed` that is removed

Change-Id: I8e7feadce9712bf6e541321187a64da9209660fa
GitHub-Last-Rev: f3ec60a3a4
GitHub-Pull-Request: golang/website#227
Reviewed-on: https://go-review.googlesource.com/c/website/+/497836
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>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2023-05-24 22:38:14 +00:00
Jamal Carvalho c284478a72 _content: fix download table overflow
Fixes golang/go#59949.

Change-Id: Ia0c633f935334ade7292d7b35e18315fa77e04b9
Reviewed-on: https://go-review.googlesource.com/c/website/+/498055
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Jamal Carvalho <jamal@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-24 19:13:30 +00:00
Sean Liao f7341273fe _content/doc/tutorial: remove use of deprecated math/rand.Seed
Fixes golang/go#58958

Change-Id: I5ef84f2fd350e3048649cf281e8272e62b2fc052
Reviewed-on: https://go-review.googlesource.com/c/website/+/475275
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-24 04:09:16 +00:00
Carlos Amedee da863783d7 _content/e: add error links
Each Go compiler error has an associated Markdown file which lists
an explanation of the error as well as an example of what may cause
the error. The Markdown files are generated by the generrordocs.go
tool which is located in the main Go repository
($GOROOT/src/internal/types/errors/generrordocs.go).

Change-Id: Iab699bc995e9e25c6ff048ccbb71c62905b5e899
Reviewed-on: https://go-review.googlesource.com/c/website/+/493678
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Run-TryBot: Carlos Amedee <carlos@golang.org>
2023-05-24 00:29:00 +00:00
Dmitri Shuralyov d1f28970d1 internal/history: include ".0" in go1.21.0 and onwards
Now that proposal go.dev/issue/57631 is accepted, the upcoming major Go
release version will not omit its trailing zero component in "go1.21.0".
Update the behavior and documentation of Version accordingly.

Drop IsMajor and IsMinor since they would need to be updated but aren't
used anywhere. Instead, add MajorPrefix and use it to not break the
future Go 1.21 release notes link. We decided those release notes
document the entire release series, not just the first release,
so it needs to eventually stay as "/doc/go1.21" and not "/doc/go1.21.0".

For golang/go#57631.

Change-Id: I069d171354752e5123b7950c45581a236b304f95
Reviewed-on: https://go-review.googlesource.com/c/website/+/497497
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-05-23 19:24:18 +00:00
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