mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
doc: update links
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5754051
This commit is contained in:
parent
aeefe0fa6e
commit
97b13acb67
@ -155,7 +155,7 @@ Prefix Map key
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
For more information about the <code>append</code> function and slices
|
For more information about the <code>append</code> function and slices
|
||||||
in general see the
|
in general see the
|
||||||
<a href="http://blog.golang.org/2011/01/go-slices-usage-and-internals.html">Slices: usage and internals</a> article.
|
<a href="/doc/articles/slices_usage_and_internals.html">Slices: usage and internals</a> article.
|
||||||
</step>
|
</step>
|
||||||
|
|
||||||
<step title="Pushing the suffix onto the prefix" src="doc/codewalk/markov.go:/p\.Shift/">
|
<step title="Pushing the suffix onto the prefix" src="doc/codewalk/markov.go:/p\.Shift/">
|
||||||
|
@ -320,10 +320,9 @@ exceptional.
|
|||||||
<p>
|
<p>
|
||||||
Go takes a different approach. For plain error handling, Go's multi-value
|
Go takes a different approach. For plain error handling, Go's multi-value
|
||||||
returns make it easy to report an error without overloading the return value.
|
returns make it easy to report an error without overloading the return value.
|
||||||
<a href="http://blog.golang.org/2011/07/error-handling-and-go.html">A
|
<a href="/doc/articles/error_handling.html">A canonical error type, coupled
|
||||||
canonical error type, coupled
|
with Go's other features</a>, makes error handling pleasant but quite different
|
||||||
with Go's other features</a>, makes error
|
from that in other languages.
|
||||||
handling pleasant but quite different from that in other languages.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -336,7 +335,7 @@ when used well, can result in clean error-handling code.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
See the <a href="http://blog.golang.org/2010/08/defer-panic-and-recover.html">Defer, Panic, and Recover</a> article for details.
|
See the <a href="/doc/articles/defer_panic_recover.html">Defer, Panic, and Recover</a> article for details.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3 id="assertions">
|
<h3 id="assertions">
|
||||||
@ -1317,8 +1316,7 @@ table-driven, iterating over a list of inputs and outputs defined
|
|||||||
in a data structure (Go has excellent support for data structure literals).
|
in a data structure (Go has excellent support for data structure literals).
|
||||||
The work to write a good test and good error messages will then be amortized over many
|
The work to write a good test and good error messages will then be amortized over many
|
||||||
test cases. The standard Go library is full of illustrative examples, such as in
|
test cases. The standard Go library is full of illustrative examples, such as in
|
||||||
<a href="http://golang.org/src/pkg/fmt/fmt_test.go">the formatting
|
<a href="/src/pkg/fmt/fmt_test.go">the formatting tests for the <code>fmt</code> package</a>.
|
||||||
tests for the <code>fmt</code> package</a>.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
@ -1588,7 +1586,7 @@ appear on a line by itself.
|
|||||||
Some have argued that the lexer should do lookahead to permit the
|
Some have argued that the lexer should do lookahead to permit the
|
||||||
brace to live on the next line. We disagree. Since Go code is meant
|
brace to live on the next line. We disagree. Since Go code is meant
|
||||||
to be formatted automatically by
|
to be formatted automatically by
|
||||||
<a href="http://golang.org/cmd/gofmt/"><code>gofmt</code></a>,
|
<a href="/cmd/gofmt/"><code>gofmt</code></a>,
|
||||||
<i>some</i> style must be chosen. That style may differ from what
|
<i>some</i> style must be chosen. That style may differ from what
|
||||||
you've used in C or Java, but Go is a new language and
|
you've used in C or Java, but Go is a new language and
|
||||||
<code>gofmt</code>'s style is as good as any other. More
|
<code>gofmt</code>'s style is as good as any other. More
|
||||||
|
Loading…
Reference in New Issue
Block a user