]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update links
authorShenghou Ma <minux.ma@gmail.com>
Tue, 6 Mar 2012 21:15:47 +0000 (08:15 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 6 Mar 2012 21:15:47 +0000 (08:15 +1100)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5754051

doc/codewalk/markov.xml
doc/go_faq.html

index 81df1289c21605fe06dfe428c793943213d6ffe1..977c95dadb6a36b732f58b56201360417a6d072b 100644 (file)
@@ -155,7 +155,7 @@ Prefix               Map key
        <br/><br/>
        For more information about the <code>append</code> function and slices
        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 title="Pushing the suffix onto the prefix" src="doc/codewalk/markov.go:/p\.Shift/">
index d95da0f6faab4b0003d8946b1b46a3b24a7a721c..e06cab14cb6b13caacfcfa20e10bf56be7e5460f 100644 (file)
@@ -320,10 +320,9 @@ exceptional.
 <p>
 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.
-<a href="http://blog.golang.org/2011/07/error-handling-and-go.html">A
-canonical error type, coupled
-with Go's other features</a>, makes error
-handling pleasant but quite different from that in other languages.
+<a href="/doc/articles/error_handling.html">A canonical error type, coupled
+with Go's other features</a>, makes error handling pleasant but quite different
+from that in other languages.
 </p>
 
 <p>
@@ -336,7 +335,7 @@ when used well, can result in clean error-handling code.
 </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>
 
 <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).
 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
-<a href="http://golang.org/src/pkg/fmt/fmt_test.go">the formatting
-tests for the <code>fmt</code> package</a>.
+<a href="/src/pkg/fmt/fmt_test.go">the formatting tests for the <code>fmt</code> package</a>.
 </p>
 
 
@@ -1588,7 +1586,7 @@ appear on a line by itself.
 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
 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
 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