]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.19: prefer relative links to other parts of the Go website
authorDmitri Shuralyov <dmitshur@golang.org>
Mon, 13 Jun 2022 19:39:08 +0000 (15:39 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 13 Jun 2022 20:00:24 +0000 (20:00 +0000)
The Go website can be served on more than one domain (for example,
go.dev, golang.google.cn, tip.golang.org, localhost:6060, and so on).
Use relative links which work in all contexts.

For #51400.
Updates #53337.

Change-Id: I100938981447537ac242b4045929f6db8a2674c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/411974
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
doc/go1.19.html

index 4d7552276f3227634ff04fe66d0b94b8c9edc9e2..df42a427ff1de3c6c12aa9ba20d902e854655e1e 100644 (file)
@@ -139,7 +139,7 @@ as well as support for rendering them to HTML, Markdown, and text.
   / <a href="/pkg/runtime/#hdr-Environment_Variables"><code>GOGC</code></a>,
   and will be respected even if <code>GOGC=off</code>, allowing Go programs to
   always make maximal use of their memory limit, improving resource efficiency
-  in some cases. See <a href="https://go.dev/doc/gc-guide">the GC guide</a> for
+  in some cases. See <a href="/doc/gc-guide">the GC guide</a> for
   a detailed guide explaining the soft memory limit in more detail, as well as
   a variety of common use-cases and scenarios. Please note that small memory
   limits, on the order of tens of megabytes or less, are less likely to be
@@ -277,7 +277,7 @@ as well as support for rendering them to HTML, Markdown, and text.
   <a href="/pkg/os/exec/#Command"><code>Command</code></a> and
   <a href="/pkg/os/exec/#LookPath"><code>LookPath</code></a> no longer
   allow results from a PATH search to be found relative to the current directory.
-  This removes a <a href="https://go.dev/blog/path-security">common source of security problems</a>
+  This removes a <a href="/blog/path-security">common source of security problems</a>
   but may also break existing programs that depend on using, say, <code>exec.Command("prog")</code>
   to run a binary named <code>prog</code> (or, on Windows, <code>prog.exe</code>) in the current directory.
   See the <a href="/pkg/os/exec/"><code>os/exec</code></a> package documentation for
@@ -718,7 +718,7 @@ as well as support for rendering them to HTML, Markdown, and text.
       The methods <a href="/pkg/reflect/#Value.Len"><code>Value.Len</code></a>
       and <a href="/pkg/reflect/#Value.Cap"><code>Value.Cap</code></a>
       now successfully operate on a pointer to an array and return the length of that array,
-      to match what the <a href="https://go.dev/ref/spec#Length_and_capacity">builtin
+      to match what the <a href="/ref/spec#Length_and_capacity">builtin
       <code>len</code> and <code>cap</code> functions do</a>.
     </p>
   </dd>