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
f18b0b0c
Commit
f18b0b0c
authored
Feb 18, 2012
by
Shenghou Ma
Committed by
Rob Pike
Feb 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: various updates to doc/code.html
R=golang-dev, adg, r CC=golang-dev
https://golang.org/cl/5649068
parent
701fb580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
code.html
doc/code.html
+5
-4
No files found.
doc/code.html
View file @
f18b0b0c
...
...
@@ -109,7 +109,7 @@ package foo
const String = "Go rules!"
^D
$ go install widgets/foo
$ ls $GOPATH/pkg/*/
example
$ ls $GOPATH/pkg/*/
widgets
foo.a
</pre>
...
...
@@ -162,6 +162,7 @@ Use "<code>go install</code>":
</p>
<pre>
$ mkdir -p $GOPATH/src/widgets/bar
$ cat
>
$GOPATH/src/widgets/bar/bar.go
package main
...
...
@@ -217,7 +218,7 @@ func TestString(t *testing.T) {
}
^D
$ go test widgets/foo
ok widgets/foo
ok widgets/foo
0.018s
</pre>
<p>
...
...
@@ -323,8 +324,8 @@ foo_arm.go
</pre>
describes a package that builds on
different
operating system
s by parameterizing the file name with
<code>
$GO
OS
</code>
.
</p>
different
architecture
s by parameterizing the file name with
<code>
$GO
ARCH
</code>
.
</p>
<p>
The general code goes in
<code>
foo.go
</code>
, while architecture-specific
code goes in
<code>
foo_386.go
</code>
,
<code>
foo_amd64.go
</code>
, and
...
...
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