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

2662 Коммитов

Автор SHA1 Сообщение Дата
Kir Kolyshkin 31640b1e1a _content/doc/go1.23: os: document pidfd
Briefly describe pidfd, and note the extra opened file descriptors as
per request in [1].

[1]: https://github.com/golang/go/issues/62654#issuecomment-2170992329

Updates golang/go#62654.

For golang/go#65614.

Co-authored-by: Michael Pratt <mpratt@google.com>
Change-Id: Ie2a8e917cbbb1c6129a1706c22c9993222855bc4
Reviewed-on: https://go-review.googlesource.com/c/website/+/603717
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
2024-08-09 13:37:20 +00:00
Dmitri Shuralyov 84089be61b _content/blog: move go12 to go1.2
All blog posts for major Go releases include a dot, other than the one
for Go 1.2. Fix the inconsistency and add a redirect from the old page.

Change-Id: I2f08142b6e802808be49adb5abf1562ab2d6fd73
Reviewed-on: https://go-review.googlesource.com/c/website/+/603795
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-07 20:11:53 +00:00
Will Faught a016d21030 _content/blog/generic-slice-functions.md: fix package name
Change-Id: If55ced63c7cd5becc2dbd1e2ce35af0d5e29abe4
GitHub-Last-Rev: ba9b266857
GitHub-Pull-Request: golang/website#295
Reviewed-on: https://go-review.googlesource.com/c/website/+/601515
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-08-07 18:13:23 +00:00
Gopher Robot 89283d8aed go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I8695787cef8733c803a139d70032588082a4017e
Reviewed-on: https://go-review.googlesource.com/c/website/+/603615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-08-06 20:58:11 +00:00
David Chase c87b2eb979 internal/history: document Go 1.22.6 and 1.21.13 releases
Change-Id: If5481efb371aad0c61c4d0a0aec4ecbb8ebd3600
Reviewed-on: https://go-review.googlesource.com/c/website/+/603455
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-06 18:04:13 +00:00
Dmitri Shuralyov 6dc5e9bfb6 internal/history: catch empty non-nil fix summaries in TestReleases
When there are no security fixes (or no bug fixes) in a given release,
it's represented with a nil *FixSummary. Since it also may reasonably
be represented with an empty FixSummary, add a test to enforce one of
the two possible styles is consistently chosen. The template handles
an empty non-nil *FixSummary as a very generic "there were some fixes"
text, which is never what we want.

Change-Id: I96ac7cdf37ec7a8406f31500024150df422730bb
Reviewed-on: https://go-review.googlesource.com/c/website/+/603495
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-06 17:14:34 +00:00
Oleksandr Redko a87187696e _content/solutions: update link to the Dropbox blog
The old https://blogs.dropbox.com is inaccessible.

Change-Id: I48de0ea61be4ea7954d461a1bea4e6d3b6cfd785
Reviewed-on: https://go-review.googlesource.com/c/website/+/602836
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-06 15:53:37 +00:00
Oleksandr Redko 6e49da7ab8 _content/solutions: use https links
Change-Id: I8fe0452619ed588d17bb12c413ca11f3b1d9aded
Reviewed-on: https://go-review.googlesource.com/c/website/+/602835
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
2024-08-06 15:53:34 +00:00
wdesert 04a44d2a15 _content/doc/faq: clarify the explanation of method sets
I had a small discussion with @ianlancetaylor here:
https://groups.google.com/g/golang-nuts/c/uon32LDerjM/m/dvg0mxbwAAAJ?utm_medium=email&utm_source=footer

I would like to clarify this entry about method sets a bit because the current explanation is a bit confusing. I believe there is no reason for the Write method of Buffer to use a value receiver. In this case, the sentence about the compiler's ability to implicitly take addresses doesn't make sense.

What I believe is implied here is a hypothetical situation where the code from the example is allowed by Go, and then it is noted that this makes no sense as the result would be lost in the caller.

Change-Id: Ie4de77364165d59178e2b1e6e1393370e06d1755
GitHub-Last-Rev: 40392d43f0
GitHub-Pull-Request: golang/website#296
Reviewed-on: https://go-review.googlesource.com/c/website/+/601996
Auto-Submit: Ian Lance Taylor <iant@google.com>
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>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-07-31 23:33:06 +00:00
Brad Fitzpatrick d2408a1129 _content/doc/go1.23: fix a typo and some formatting
Updates golang/go#65614

Change-Id: I46b53e25a3f81aaecbdef74f02bcafd341530b23
Reviewed-on: https://go-review.googlesource.com/c/website/+/601995
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-31 15:43:32 +00:00
Thiago aabfe331f9 tour: add a Spanish translation
I'm part of the Gophers-Latam Community. I am excited to present our
translation of the Tour of Go, a collaborative effort of our community.
It's available at https://go-tour-lat.appspot.com/.

Fixes golang/go#64454

Change-Id: Icd6e1f8ec340deea992858571c03bc2ae933d72b
GitHub-Last-Rev: 45234eb657
GitHub-Pull-Request: golang/website#264
Reviewed-on: https://go-review.googlesource.com/c/website/+/545855
Reviewed-by: Thiago Mowszet <thiagomowszet@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2024-07-31 14:59:01 +00:00
Will Faught 70d824f6fb _content/blog/randv2.md: minor fixes
Change-Id: I49bad5dc6816241357546d68274acb1ea0fa8391
GitHub-Last-Rev: 27b48c2c47
GitHub-Pull-Request: golang/website#294
Reviewed-on: https://go-review.googlesource.com/c/website/+/601495
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-27 00:56:19 +00:00
Robert Griesemer cb8315ecdb _content/doc/go1.23: document known issue for generic alias types
For golang/go#68526.
For golang/go#65614.

Change-Id: I260da94ffaae0d6583e6396b0a78b46dd298313c
Reviewed-on: https://go-review.googlesource.com/c/website/+/600936
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Tim King <taking@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
2024-07-25 23:07:11 +00:00
Hana (Hyang-Ah) Kim 0597db8f98 _content: add anchor links to article headers
These anchor links allow users to copy the links for jumping tos
the specific sections easily.

We use javascript to add these links to handle both .html
and .md file format contents. If we had only markdown-based
contents, we could've adjusted the markdown-to-html renderer
instead of relying on javascript. Alternatively, we can try
to rewrite the html in a later pass, but html dom query and
rewrite is simpler in JS.

In order to minimize styling changes in the header text,
we set up the anchor on ¶ symbol that appears only on hover.
This is similar to how pkg.go.dev handles header anchor links.

Adjust the code for TOC generation (in godocs.js), since
now the heading elements include ¶, we want to drop it but
use the first part of the heading elements when compiling
TOC.

Fixes golang/go#68596

Change-Id: Idfe4734c54c636e426b579fdcd697156e87b5747
Reviewed-on: https://go-review.googlesource.com/c/website/+/601055
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-25 22:27:21 +00:00
Russ Cox 388f3d03b7 doc/faq: expand discussion of generic methods
Rob Pike pointed out that it could be clearer and more self-contained,
as well as being clear about generic methods never happening.

Change-Id: I854a38e20b4a7cd695bb3fa0a237759c5f7224d3
Reviewed-on: https://go-review.googlesource.com/c/website/+/599475
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-25 20:12:13 +00:00
Dmitri Shuralyov ed6d739b5c _content/doc: add go1.24.md placeholder
Add this file now so that it's possible to preview the latest release
notes draft at https://tip.golang.org/doc/go1.24, and to include that
link in the tracking issue. Based on CL 588057 that did this for 1.23.

For golang/go#68545.

Change-Id: I07f30023d23ec027927f7417ebece4110f221efa
Reviewed-on: https://go-review.googlesource.com/c/website/+/600179
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-07-22 19:03:06 +00:00
Cherry Mui 935bc0b9ed _content/doc/go1.23: minor format change
For golang/go#65614.

Change-Id: Iecdebfaf4e7467734e60f30867ebcf926e31e97b
Reviewed-on: https://go-review.googlesource.com/c/website/+/599775
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-07-22 15:11:35 +00:00
Sean Liao 5c2e333b92 _content/doc: GOPATH and gopls instructions in contribution guide
Fixes golang/go#67659

Change-Id: I01b22c68049f89694513185ac9076e4fa8d94114
Reviewed-on: https://go-review.googlesource.com/c/website/+/598095
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@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
2024-07-17 19:56:21 +00:00
Rob Findley 874627beaf _content/doc: fix errant '-' in telemetry.md
This is a grammar rules that my fingers will never learn, and sometimes
my eyes do not notice...

Change-Id: If6c5e8b45702844996f13802ffb041d0e7d6a322
Reviewed-on: https://go-review.googlesource.com/c/website/+/598696
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-07-16 20:47:53 +00:00
Rob Findley 822132964e _content/doc: improve visibility of configuration in telemetry documentation
A common use-case for reading the telemetry documentation is to discover
how to enable or disable telemetry, yet the configuration section is
somewhat far down the page.

Add a new info callout with quick commands to enable or disable
telemetry.

For golang/go#68204

Change-Id: I6efc366401e626ed436905bda35fe75ae1c4bc57
Reviewed-on: https://go-review.googlesource.com/c/website/+/598695
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-07-16 19:16:16 +00:00
Russ Cox d4aafd8e14 LICENSE: update per Google Legal
Very minor tweaks:
 - Remove (c) pseudosymbol.
 - Remove "All Rights Reserved."
 - Change "Google Inc." (no longer exists) to "Google LLC".

[git-generate]
echo '
,s/\(c\) //
,s/ All rights reserved.//
,s/Google Inc./Google LLC/
w
q
' | sam -d LICENSE

Change-Id: I01330570f8d0a932becb8464519182970fdd48f3
Reviewed-on: https://go-review.googlesource.com/c/website/+/598590
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2024-07-16 16:08:18 +00:00
Michael Stapelberg 8785f8a52a doc: unify terminology to Standard library
This aligns the existing release notes with the upcoming release notes for Go
1.24 and newer (https://go.dev/cl/556817).

The term Standard library is more common, both in spoken and written
communication about Go. Also, it is engrained in commands like
go test std, which is not going to change.

Change-Id: I5cc2bfc608effe40befa8f168b1f08b9882ce7dd
Reviewed-on: https://go-review.googlesource.com/c/website/+/598096
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-07-16 14:00:43 +00:00
Ian Lance Taylor 4764f0f690 _content/blog/deconstructing-type-parameters: add missing comma
Change-Id: I44e55d90c989117fe13b5b3dfc5534543595aa28
Reviewed-on: https://go-review.googlesource.com/c/website/+/598275
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2024-07-15 16:24:05 +00:00
Dmitri Shuralyov 624fadc019 internal/history: delete duplicate package comment
CL 296429 added history.go with a package comment even though there
was one in release.go. Drop one of the two, keeping one that sounds
slightly better and is located in the more typical place-a .go file
whose name is the same as the package name.

Change-Id: I31ab5ee4bc9fa02aaf98c0d399ae7d212f1fd2bc
Reviewed-on: https://go-review.googlesource.com/c/website/+/473236
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-07-10 20:28:20 +00:00
Dmitri Shuralyov f65c3a961a internal/gitfs: close response body in Repo.handshake
This was missed in CL 328213.

Change-Id: If62b9ee842b4b89725915ae74f755e66073264bd
Reviewed-on: https://go-review.googlesource.com/c/website/+/352329
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Rhys Hiltner <rhys.hiltner@gmail.com>
2024-07-10 20:28:17 +00:00
Russ Cox 3712d1ccfb cmd/golangorg: fix package link URLs
Doc comment text was linking to / instead of /pkg,
which was creating dead links. Fix that.

All other doc links were using /pkg/cmd/ instead of /cmd/.
And we were serving everything in cmd in both places.
Fix the links, and redirect /pkg/cmd/ to /cmd/.

Change-Id: Ib5c205b3faf53aff0f0bb6d475fa942a6718e616
Reviewed-on: https://go-review.googlesource.com/c/website/+/596436
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2024-07-09 19:55:51 +00:00
Tatiana Bradley c9e6fa92a3 _content/doc/security/vuln: add section on non-Go versions
Add a section explaining how our tooling handles versions
that are not recognized by the Go module proxy.

Change-Id: Iee0f201c75e04993569ceff52f9808ca9246e997
Reviewed-on: https://go-review.googlesource.com/c/website/+/596496
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tim King <taking@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
2024-07-08 20:39:10 +00:00
Gopher Robot fa22152f22 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I64501b2dfd01a17d737aa6abc24c402263da8823
Reviewed-on: https://go-review.googlesource.com/c/website/+/597015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2024-07-07 23:36:48 +00:00
Than McIntosh 7ea058ad10 go.mod: update x/build to CL 596477
Update x/build to pick up changes for new x/oscar repo.

Change-Id: I42cee48d593b5e4b061230a83af0e7f1c1c4eeca
Reviewed-on: https://go-review.googlesource.com/c/website/+/596695
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-03 23:38:58 +00:00
Than McIntosh 8b8813fd5a internal/history: document Go 1.22.5 and 1.21.12 releases
Change-Id: Ib98bddcaae9eff2ddd12df74fe6f3f249c4c8970
Reviewed-on: https://go-review.googlesource.com/c/website/+/596115
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-02 17:11:04 +00:00
Cherry Mui 9c6efbb3a7 _content/doc/go1.23: remove minor package changes with no content
Some packages (iter, maps, structs, and unique) are mentioned in
the "Core library" section and there is no content (except
comments) in the "Minor changes" section for them. Remove.

For golang/go#65614.

Change-Id: I9989b83e5cb9893c1d5aa90b36035d797916ae8e
Reviewed-on: https://go-review.googlesource.com/c/website/+/595959
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-07-02 14:50:38 +00:00
Michael Matloob 27315b9a84 _content/ref: remove potentially confusing statement in go work use doc
A statement in the go work use docs that was meant to clarify that go
work use would clean up use statements where the directories did not
exist ended up causing confusion.

Remove that statement for now. We might want to add something back in
the future.

Fixes golang/go#68245

Change-Id: I74b0ebdf7d11e8e03a4e18f58e49ec02a896c091
Reviewed-on: https://go-review.googlesource.com/c/website/+/595997
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
2024-07-01 19:41:01 +00:00
Oleksandr Redko 97c56edbf3 _content/tour: change '// +build' to '//go:build'
Rename no-build to nobuild, no-run to norun because it's forbidden
to use hyphen in a build constraint name.

Change-Id: Ide0cd3c72f6c79c640b601c0526e08223de04610
Reviewed-on: https://go-review.googlesource.com/c/website/+/594815
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-07-01 13:45:53 +00:00
Oleksandr Redko 43d14f6c80 _content/doc/devel: fix typos
Change-Id: I82fff4cc6ac4bba6686ae18d7fb27ac5d79116b3
Reviewed-on: https://go-review.googlesource.com/c/website/+/517655
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: Joedian Reid <joedian@google.com>
2024-06-28 14:55:15 +00:00
Ian Lance Taylor a5f55a2210 _content/doc/faq: add entry about zero-size types
Provide a reference to help clear up periodic confusion:

https://groups.google.com/g/golang-nuts/c/MXcOqW-Mf-c/m/2-24iQXSAwAJ
https://groups.google.com/g/golang-nuts/c/JBVqWYFdtC4/m/EqZxT9EYAQAJ

For golang/go#2620
For golang/go#11925
For golang/go#23440
For golang/go#47950
For golang/go#52772
For golang/go#58483
For golang/go#65878

Change-Id: I0986b35d02f2fe88d5a08af1f7d1f50510c39d7c
Reviewed-on: https://go-review.googlesource.com/c/website/+/594515
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
2024-06-27 01:18:43 +00:00
Michael Pratt a36b46af20 _content/blog: add acknowledgements to PGO blog posts
Change-Id: I061e590a77153d02deb5d9648fe58069bd9de5b8
Reviewed-on: https://go-review.googlesource.com/c/website/+/595035
Reviewed-by: Eli Bendersky <eliben@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-25 21:32:20 +00:00
Ian Lance Taylor 4689eb36e1 _content/doc: convert faq from HTML to Markdown
Change-Id: Ie62e9132520d6fc08e90f99160f4696b60db9670
Reviewed-on: https://go-review.googlesource.com/c/website/+/593875
Reviewed-by: Joedian Reid <joedian@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2024-06-24 16:47:42 +00:00
Ian Lance Taylor df09bd3dcd _content/doc/go1.23: note netip.Addr change in reflect.DeepEqual
Fixes golang/go#68113

Change-Id: I58b38f4d4c4f6d4dc26d55170c7ed44b09542c57
Reviewed-on: https://go-review.googlesource.com/c/website/+/594295
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-24 16:26:17 +00:00
Gopher Robot 0ebff5cb6f _content/doc: add merged go1.23.md
Using doc/next content as of 2024-06-21 (commit 1b4f1dc95d221c1e9d0afb9067fd6a09f12dd061).

For golang/go#65614.

Change-Id: Ifa21855a92dc99f480ea605947cc48d542ff5193
Reviewed-on: https://go-review.googlesource.com/c/website/+/594035
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-06-21 19:18:56 +00:00
Oleksandr Redko c9f9352637 cmd,internal: replace deprecated ioutil with io and os
Change-Id: I1d66a5c7b087d9329628efb6ce8849a004663b51
Reviewed-on: https://go-review.googlesource.com/c/website/+/592895
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-06-21 19:00:48 +00:00
Oleksandr Redko 8d335a83f6 _content/tour: fix content test
- Add missing '// +build' comments for generics examples.
- Add build tags 'OMIT', 'no-run' for solutions examples.
- Move content_test.go to the root because 'go' ignores
packages in the '_content' directory.
- Remove usages of deprecated 'io/ioutil'.

Change-Id: I8e6b717d43df9e2b55e4b796db5b316860f42103
Reviewed-on: https://go-review.googlesource.com/c/website/+/592875
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
2024-06-21 18:48:12 +00:00
Michael Matloob 80af5f5f42 ref/mod: add a warning against checking in go.work files
Add a warning against checking in go.work files together with a
sentence about where it might be okay.

Fixes golang/go#53502

Change-Id: I1f643fc75c2951a9dcd56db11d612989dadcaa59
Reviewed-on: https://go-review.googlesource.com/c/website/+/580115
Reviewed-by: Eli Bendersky‎ <eliben@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
2024-06-07 21:46:20 +00:00
Gopher Robot 2197f42d6b go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ibadd72afa67f454bf8707cdd0cfd9cb92ad3538b
Reviewed-on: https://go-review.googlesource.com/c/website/+/590419
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-06-04 19:33:03 +00:00
Michael Anthony Knyszek 7189aba396 internal/history: document Go 1.22.4 and 1.21.11 releases
Change-Id: I9431510f6371516e3a429ab804fa4cb72d344387
Reviewed-on: https://go-review.googlesource.com/c/website/+/590335
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-06-04 18:36:01 +00:00
Michael Matloob dc220e6481 _content/doc/tutorial: fix mixup between "module" and "workspace"
The word "workspace" was intended to be used.

Fixes golang/go#67740

Change-Id: I942f3301eaaf8f3fc6eb8964d3ebe90503bdbc60
Reviewed-on: https://go-review.googlesource.com/c/website/+/590043
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
2024-06-04 15:27:29 +00:00
Dmitri Shuralyov bc501ffff7 cmd/golangorg: fall back to embedded content when _content is not nearby
If golangbuild is run from a directory other than x/website root or its
cmd/golangbuild directory, it's more useful to use the embedded content
than a directory that does not exist.

This was previously possible by explicitly setting the -content flag to
the empty string. This change makes it possible to leave the flag unset,
which can be handy for go run golang.org/x/website/cmd/golangorg@latest.

Change-Id: Id0e33515b15934fdfcd1cbe594ad4c7b969a1d21
Reviewed-on: https://go-review.googlesource.com/c/website/+/589936
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-06-03 18:50:37 +00:00
Hajime Hoshi abb9f5be80 _content/doc/gopher: update the license version
CC BY 4.0 is the correct version for Gophers.

Change-Id: I0f3b7d50a17f248fbf485f111b52eb703972dbfd
Reviewed-on: https://go-review.googlesource.com/c/website/+/588995
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Hajime Hoshi <hajimehoshi@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2024-05-29 18:15:06 +00:00
Dmitri Shuralyov 3d551ff780 _content/doc: add go1.23.md placeholder
Add this file now so we can use the https://tip.golang.org/doc/go1.23
both before and after the release note fragments are merged, meaning
we won't need to tell people to abruptly stop looking at /doc/next and
start looking at /doc/go1.23 sometime in the next few weeks.

The /doc/next page may still be useful in some contexts where a moving
target URL works better than a fixed one, so leave it behind for now.

For golang/go#65614.

Change-Id: Ib28608f56b2a88b44e554bf24c04873f3ed6961b
Reviewed-on: https://go-review.googlesource.com/c/website/+/588057
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-24 15:26:34 +00:00
Dmitri Shuralyov e7879e0f78 cmd/golangorg: update App Engine runtime to Go 1.22
By now the supported and tested Go versions are Go 1.22 and 1.21.
Update the website deployment to start using the Go 1.22 runtime.
See https://cloud.google.com/appengine/docs/standard/lifecycle/support-schedule#go.

Change-Id: I376e36e8aa0f8128c1bcdce6a199c51f163e9c33
Reviewed-on: https://go-review.googlesource.com/c/website/+/587475
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-05-22 18:50:33 +00:00
Dmitri Shuralyov 89cd6982bc cmd/golangorg: add doc/next page to preview draft release notes
The improved release note process is being used starting with Go 1.23.
That means instead of a single doc/go1.23.html draft file in the main
Go repository, doc/next contains a set of release note fragments.
Having small, orthogonal files avoids merge conflicts, and a release
note test requires that release notes are written and included in the
same CL that's adding new APIs. As a result, the set of completed
release notes even before we enter the release freeze is greater than
ever before.

While it's possible to view those fragments using tip.golang.org
(e.g., by visiting https://tip.golang.org/doc/next), reading them
that way isn't practical. The relnote generate tool exists to merge
fragments into a complete Markdown document, and this tool will be
used when eventually moving a complete draft of Go 1.23 release notes
to x/website.

To aid the remaining work of completing the release note draft, this
change adds a dynamic /doc/next page to preview what the relnote
generate tool will produce. Combined with existing functionality of
the -tip flag, it makes https://tip.golang.org/doc/next display a live
preview of the checked-in release notes draft.

It can also be used to preview release note draft locally. For example,
if $HOME/gotip is a Go checkout where one is editing doc/next content:

go run golang.org/x/website/cmd/golangorg@latest -goroot=$HOME/gotip

Will serve a live preview at http://localhost:6060/go.dev/doc/next.
It can be slightly more convenient to refresh a browser without having
to re-run 'relnote generate'.

For golang/go#64169.
For golang/go#65614.

Change-Id: Ie1d3650076421a95a691dd84a554a113dd1187b1
Reviewed-on: https://go-review.googlesource.com/c/website/+/587436
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2024-05-22 18:44:50 +00:00