mirror of
https://github.com/golang/go
synced 2024-11-26 21:01:31 -07:00
doc/go1.19: prefer relative links to other parts of the Go website
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>
This commit is contained in:
parent
fbc75dff2f
commit
24b9039149
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user