aboutsummaryrefslogtreecommitdiff
path: root/_content/doc/tutorial/getting-started.html
AgeCommit message (Collapse)Author
2025-06-02_content/doc/tutorial: better description rsc.io/quote search resultSean Liao
Fixes golang/go#51188 Change-Id: I056d2387448309899ce3504fb666499f06852185 Reviewed-on: https://go-review.googlesource.com/c/website/+/677855 Reviewed-by: t hepudds <thepudds1460@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
2025-03-11_content/doc/tutorial/getting-started.html fix formatingAlexAntonik
Made more clear what exact command is Change-Id: I184d9a44318aa5f816d79ad6a03b03b174a6a6e2 GitHub-Last-Rev: a14e82f00ce582c73d0c6a4a6209b2dda093df29 GitHub-Pull-Request: golang/website#313 Reviewed-on: https://go-review.googlesource.com/c/website/+/656215 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Ian Lance Taylor <iant@google.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>
2021-11-17go.dev/_content: various formatting fixesRuss Cox
Add a standard 1rem margin above and below key block elements like h1, h2, ..., ol, ul, p. Today it's very inconsistent and because you get a margin from either the block above or below, it mostly works out, except in certain cases where text gets jammed together a bit too much. Add the auto-TOC generator for use in layouts that define #nav (nothing yet, but golang.org-migrated pages will). Add "Table of Contents" to the top of the TOC. Allow pages to opt out of the TOC by setting HideTOC in their metadata. Make subtitle heading (Version of Jan 1, 2021) line up horizontally with the TOC. Preparation for the golang.org -> go.dev move. Change-Id: Ic9121e5b636155c54e487bcb735ac0bc3f958733 Reviewed-on: https://go-review.googlesource.com/c/website/+/362502 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-09-08_content/doc: module naming best practicesSteve Traut
This adds new content with best practices for the module path. It also revises existing content to use the best practice. This change includes: * A new "Naming a module" section in "Managing dependencies" describing naming best practices and reserved terms for module paths. * Changing module path prefix from "example.com/*" to "example/*" where the content seems aimed specifically at new users. This is designed to reduce confusion for those who wonder if a domain name is required in the local, simple context. * Links to the "Naming a module" section so that new users can follow up from the simple case to learn about best practices. Change-Id: I07eac1f805ce506a486d3c0e7b54539554e3c30b Reviewed-on: https://go-review.googlesource.com/c/website/+/344469 Trust: Steve Traut <straut@google.com> Trust: Bryan C. Mills <bcmills@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org>
2021-03-12_content/doc: remove redundant Path metadataRuss Cox
CL 251343 (Feb 12) changed the default service URL for _content/doc/x.html from https://golang.org/doc/x.html to https://golang.org/doc/x. Remove Path metadata that simply restates this new default. Change-Id: Ia132c08f200c5a93554755cd1cd8429c9f8f3062 Reviewed-on: https://go-review.googlesource.com/c/website/+/296382 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2021-03-02_content/doc: fix module and tutorial bugs and clean up flowSteve Traut
For golang/go#44241 - Fix issues 2, 3, 8, 16, 17, 18 from golang/go#44241 Other changes in multiple topics: - In markdown, replace HTML anchor tags with {#anchor} tags. - In a few places, add content to clarify that module path must be a location from which the module can be downloaded. - Where it was missing, add example.com domain to example module paths. Hopefully, this will reinforce the idea that the module path should typically include a domain. Docs will use something that looks like a domain name for module path. - Add more cross-references from tutorial to references for packages and commands. - Rewrite a few links so that they include the topic title, rather than simply inline text. Left those links whose destinations are references -- the item's name seems to suggest that a reference is at the destination. - Remove domain name from golang.org doc links, leaving root directory. Such as /cmd/go/* or /doc/modules/* - Add path up to root for all links in the same domain. Some were linking by file name only. - Change standard library links from golang.org to pkg.go.dev. Changes in the module tutorial: - Add text to help clarify that there should be a hello and greetings directory as siblings in their directory hierarchy. Some users thought one should be subordinate to the other. - Where needed, reorder steps so that `go mod init` is run before code is added. This is intended to reinforce the importance of the module's presence. - In require/replace steps, have the user use `go mod edit` rather than editing the go.mod file in an editor. The tools are more likely to yield a functioning result. - Where possible/appropriate, change module directive link destinations from "Modules reference" to go.mod reference. - Change "run the code" steps so that they all use `go run .` rather than `go build` or `go run <filename>`. This removes the impedance of explanation and more commands, while moving the explanation of `go build` and `go install` to a separate topic where they share a clearer context. - Add a "Conclusion" topic with a few links. The tutorial ended rather abruptly before. - Minor edits to remove some redundant language. Change-Id: I93055035d73c362ba73edea458fc53bc45e66512 Reviewed-on: https://go-review.googlesource.com/c/website/+/297531 Trust: Steve Traut <straut@google.com> Run-TryBot: Steve Traut <straut@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
2021-02-25_content/doc: fix typos, broken links, and text formattingFrederik Zipp
For golang/go#44241 Change-Id: Ie23c99c6e36c618d0a3135167cf780f02ea3e3ea Reviewed-on: https://go-review.googlesource.com/c/website/+/293229 Run-TryBot: Steve Traut <straut@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Steve Traut <straut@google.com> Trust: Dmitri Shuralyov <dmitshur@golang.org>
2021-02-16_content: move content/static/* to _content/*Russ Cox
The extra level of hierarchy here is unnecessary and confusing. The directory is now _content so that any Go source files in our docs are not considered by commands like "go mod tidy" and "go test all". Change-Id: Ib6d7cb12920193798ee825155a8f8b33f16e60d8 Reviewed-on: https://go-review.googlesource.com/c/website/+/291691 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>