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
b349477e
Commit
b349477e
authored
Dec 11, 2013
by
Oling Cat
Committed by
Andrew Gerrand
Dec 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/effective_go.html: close some tags.
R=golang-dev, minux.ma CC=golang-dev
https://golang.org/cl/37700043
parent
6ae37805
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
doc/effective_go.html
doc/effective_go.html
+4
-0
No files found.
doc/effective_go.html
View file @
b349477e
...
...
@@ -701,6 +701,7 @@ for _, value := range array {
<p>
The blank identifier has many uses, as described in
<a
href=
"#blank"
>
a later section
</a>
.
</p>
<p>
For strings, the
<code>
range
</code>
does more work for you, breaking out individual
...
...
@@ -2173,6 +2174,7 @@ A one-case type switch would do, but so would a <em>type assertion</em>.
A type assertion takes an interface value and extracts from it a value of the specified explicit type.
The syntax borrows from the clause opening a type switch, but with an explicit
type rather than the
<code>
type
</code>
keyword:
</p>
<pre>
value.(typeName)
...
...
@@ -2463,6 +2465,8 @@ It has uses beyond those we've seen already.
<p>
The use of a blank identifier in a
<code>
for
</code>
<code>
range
</code>
loop is a
special case of a general situation: multiple assignment.
</p>
<p>
If an assignment requires multiple values on the left side,
but one of the values will not be used by the program,
...
...
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