Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
d26d5e64
Commit
d26d5e64
authored
Jul 28, 2013
by
Rémy Oudompheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
effective_go.html: make snippets look formatted.
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/11991043
parent
05026c4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
effective_go.html
doc/effective_go.html
+4
-4
No files found.
doc/effective_go.html
View file @
d26d5e64
...
...
@@ -882,7 +882,7 @@ func nextInt(b []byte, i int) (int, int) {
}
x := 0
for ; i
<
len(b)
&&
isDigit(b[i]); i++ {
x = x*10 + int(b[i])
-
'0'
x = x*10 + int(b[i])
-
'0'
}
return x, i
}
...
...
@@ -1496,7 +1496,7 @@ with colon-separated key-value pairs,
so it's easy to build them during initialization.
</p>
<pre>
var timeZone = map[string]
int
{
var timeZone = map[string]
int
{
"UTC": 0*60*60,
"EST": -5*60*60,
"CST": -6*60*60,
...
...
@@ -1523,7 +1523,7 @@ Set the map entry to <code>true</code> to put the value in the set, and then
test it by simple indexing.
</p>
<pre>
attended := map[string]
bool
{
attended := map[string]
bool
{
"Ann": true,
"Joe": true,
...
...
...
@@ -3437,7 +3437,7 @@ the parse stack by hand:
</p>
<pre>
if pos
==
0 {
if pos
==
0 {
re.error("'*' illegal at start of expression")
}
</pre>
...
...
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