aboutsummaryrefslogtreecommitdiff
path: root/_content/doc/tutorial/generics.md
AgeCommit message (Collapse)Author
2023-12-08cmd/golangorg: check for invalid or broken links in served HTMLRuss Cox
Test that links are to /foo not https://go.dev/foo and also check that the links actually point at real pages. Manually fix problems that the test found. For golang/go#37047. Change-Id: I825eec3c2cadb9d259caff51cd893f3023ab533a Reviewed-on: https://go-review.googlesource.com/c/website/+/548059 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Russ Cox <rsc@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-02-14_content: Breadcrumbs added to children pages.Frederick Mixell
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>
2022-03-16_content/doc: change generics and fuzz tutorials from betaEli Bendersky
Go 1.18 is released; these tutorials are now out of beta as well. Fixes golang/go#51688 Change-Id: I5ded6c75f3131c97e3d2104146e0dff98dd7b1b0 Reviewed-on: https://go-review.googlesource.com/c/website/+/393215 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Trust: Eli Bendersky <eliben@google.com>
2022-02-08_content/doc/tutorial: fix a typojiahua wang
Fixes golang/go#50853 Change-Id: Ia09043435f23b979a2a0d198318096e6ecf52cb5 Reviewed-on: https://go-review.googlesource.com/c/website/+/381654 Reviewed-by: DO NOT USE <iant@google.com> Trust: Cherry Mui <cherryyz@google.com>
2022-02-08_content/doc/tutorial/generics: add indentation inside functionAndrey
Change-Id: I5648e2da0b708bf35e4406f4dcb49eabe01abf92 GitHub-Last-Rev: 009bc861a38bb5b8b180d11c1cfc569d17a00059 GitHub-Pull-Request: golang/website#122 Reviewed-on: https://go-review.googlesource.com/c/website/+/381917 Reviewed-by: DO NOT USE <iant@google.com> Trust: Cherry Mui <cherryyz@google.com>
2022-02-08_content/doc: update generics tutorial to not mention constraints packageEli Bendersky
Following decision in golang/go#50792 Change-Id: I71d74b4b386aacef5319663c397479cac6feb32f Reviewed-on: https://go-review.googlesource.com/c/website/+/383694 Reviewed-by: DO NOT USE <iant@google.com> Reviewed-by: Eli Bendersky <eliben@google.com>
2022-01-14_content: remove some https://go.dev/ prefixes in linksRuss Cox
The site is served at both go.dev and golang.google.cn. In China, only golang.google.cn can serve, so we try to use relative links to avoid pointing users to the copy they can't access. Periodically we have to remove prefixes that have crept in. This commit applies today's round of that. Change-Id: Iaa169635664d0562a1cccc57c3e02b687b3493e7 Reviewed-on: https://go-review.googlesource.com/c/website/+/378597 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: DO NOT USE <katiehockman@google.com> Trust: DO NOT USE <katiehockman@google.com>
2021-12-15_content/doc/tutorial: alias go to go1.18beta1 in generics.mdDmitri Shuralyov
My memory and documentation I just looked up suggests the alias name comes first, and the value second. Thanks to Hana for spotting this. Change-Id: I981e49c5a9231c258606a8a7914ac9857923d903 Reviewed-on: https://go-review.googlesource.com/c/website/+/372055 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Trust: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
2021-12-14_content/doc: add a generics tutorialSteve Traut
This adds a tutorial introducing Go generics. This change includes: - A generics tutorial: - _content/doc/tutorial/generics.md - Updates to index topics so that they list the new content. - _content/doc/index.html - _content/doc/tutorial/index.html Change-Id: I39abe0823c7d89dcb8ac89fcc1a2ab196a289614 Reviewed-on: https://go-review.googlesource.com/c/website/+/369614 Reviewed-by: Russ Cox <rsc@golang.org> Trust: Michael Knyszek <mknyszek@google.com>