From: Shenghou Ma Date: Sat, 18 Feb 2012 05:13:02 +0000 (+1100) Subject: doc: various updates to doc/code.html X-Git-Tag: weekly.2012-02-22~131 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f18b0b0c16c663aad4f66b29c681e5dee8bdeb2a;p=gostls13.git doc: various updates to doc/code.html R=golang-dev, adg, r CC=golang-dev https://golang.org/cl/5649068 --- diff --git a/doc/code.html b/doc/code.html index 76d25e13ae..5ae57075ed 100644 --- a/doc/code.html +++ b/doc/code.html @@ -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 @@ -162,6 +162,7 @@ Use "go install":

+$ 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
 

@@ -323,8 +324,8 @@ foo_arm.go describes a package that builds on -different operating systems by parameterizing the file name with -$GOOS.

+different architectures by parameterizing the file name with +$GOARCH.

The general code goes in foo.go, while architecture-specific code goes in foo_386.go, foo_amd64.go, and