this is much better
http://codereview.appspot.com/5640045/diff/12001/doc/code.html
File doc/code.html (right):
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode8
doc/code.html:8: This document details the development of a simple Go
package and introduces the
s/details/demonstrates/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode9
doc/code.html:9: <a href="/cmd/go/">go tool</a>, the standard tool for
fetching, building, and
maybe
the standard way to fetch, ...
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode9
doc/code.html:9: <a href="/cmd/go/">go tool</a>, the standard tool for
fetching, building, and
i'd rather you called this the "go command", since there are also "go
tools".
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode21
doc/code.html:21: configuration files to build Go code. Instead, it uses
the source code to find
or other configuration files to guide program construction.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode23
doc/code.html:23: build scripts are always in sync; they are one and the
same.
nice.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode27
doc/code.html:27: The one thing you must configure is the
<code>GOPATH</code> environment
The one thing you must do is set a GOPATH...
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode29
doc/code.html:29: tools) where to find the Go packages on your system.
s/find/& and install/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode43
doc/code.html:43: (On a Windows system we use semicolons as the path
separator instead of
s/ we/,/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode49
doc/code.html:49: <code>/home/user/mygo</code>) specifies the location
of a workspace.
italicise workspace and define it by by deleting the the paragraph
break.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode53
doc/code.html:53: A workspace contains Go source files, package objects,
and command executables.
s/.$/
forming a self-contained set of Go programs.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode64
doc/code.html:64: Subdirectories of the <code>src</code> directory form
independent packages, and
s/form/hold/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode66
doc/code.html:66: <code>.s</code>) in one of these subdirectories are
considered part of the same
in each subdirectory are elements of that subdirectory's package.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode73
doc/code.html:73: and then — if the package source isn't found
there — it searches
no spaces around the dashes.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode78
doc/code.html:78: Multiple workspaces can <code>GOPATH</code> offer some
flexibility and
delete GOPATH - it's nonsense otherwise
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode80
doc/code.html:80: To get started, create a <code>$HOME/mygo</code>
directory and set it as the
start a new paragraph, section maybe
Let's work through a simple example. First, create ...
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode97
doc/code.html:97: libraries.
not sure you want to say this. it's actually not that important and
it'll encourage people to create reallyLongNamesThatAreSureToBeUnique.
maybe refer to effective go instead. hash is a fine package name.
also it might be worth reiterating the difference between packages and
path names, or at least referring to effective go if the concepts are
unclear.
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode101
doc/code.html:101: A convenient way to choose a name space is to use the
location of your version
s/A convenient/The best/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode119
doc/code.html:119: We'll use <code>example/</code> as our name space:
maybe code.google.com?
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode200
doc/code.html:200: The <code>go</code> tool comprises several commands,
the most central being
here use
The go command comprises several subcommands,
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode301
doc/code.html:301: To run the program, invoke it by name like you would
any other command:
s/like/as/
http://codereview.appspot.com/5640045/diff/12001/doc/code.html#newcode400
doc/code.html:400: this property to automatically fetch packages from
remote repositories.
unsplit
http://codereview.appspot.com/5640045/