Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
97b13acb
Commit
97b13acb
authored
Mar 07, 2012
by
Shenghou Ma
Committed by
Andrew Gerrand
Mar 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: update links
R=golang-dev, adg CC=golang-dev
https://golang.org/cl/5754051
parent
aeefe0fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
doc/codewalk/markov.xml
doc/codewalk/markov.xml
+1
-1
doc/go_faq.html
doc/go_faq.html
+6
-8
No files found.
doc/codewalk/markov.xml
View file @
97b13acb
...
...
@@ -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/"
>
...
...
doc/go_faq.html
View file @
97b13acb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment