diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-03-04 21:27:36 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-03-04 21:27:36 +0100 |
commit | 04b08da9af0c450d645ab7389d1467308cfc2db8 (patch) | |
tree | db247935fa4f2f94408edc3acd5d0d4f997aa0d8 /doc/code.html | |
parent | 917c5fb8ec48e22459d77e3849e6d388f93d3260 (diff) | |
download | golang-upstream/1.1_hg20130304.tar.gz |
Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304
Diffstat (limited to 'doc/code.html')
-rw-r--r-- | doc/code.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/code.html b/doc/code.html index efbe7eed0..82b211870 100644 --- a/doc/code.html +++ b/doc/code.html @@ -10,6 +10,10 @@ introduces the <a href="/cmd/go/">go command</a>, the standard way to fetch, build, and install Go packages and commands. </p> +<p> +This content is also available as a <a href="http://www.youtube.com/watch?v=XCsL89YtqCs">screencast</a>. +</p> + <h2 id="GOPATH">Code organization</h2> @@ -182,7 +186,7 @@ func Sqrt(x float64) float64 { // This is a terrible implementation. // Real code should import "math" and use math.Sqrt. z := 0.0 - for i := 0; i < 1000; i++ { + for i := 0; i < 1000; i++ { z -= (z*z - x) / (2 * x) } return z @@ -402,7 +406,7 @@ ok example/newmath 0.165s </pre> <p> -Run <code><a href="/cmd/go/#Test_packages">go help test</a></code> and see the +Run <code><a href="/cmd/go/#hdr-Test_packages">go help test</a></code> and see the <a href="/pkg/testing/">testing package documentation</a> for more detail. </p> @@ -476,13 +480,13 @@ import "code.google.com/p/go.example/newmath" <p> This convention is the easiest way to make your Go packages available for others to use. -The <a href="http://godashboard.appspot.com">Go Project Dashboard</a> -is a list of external Go projects including programs and libraries. +The <a href="http://code.google.com/p/go-wiki/wiki/Projects">Go Community Wiki</a> +has a list of external Go projects including programs and libraries. </p> <p> For more information on using remote repositories with the <code>go</code> command, see -<code><a href="/cmd/go/#Remote_import_path_syntax">go help remote</a></code>. +<code><a href="/cmd/go/#hdr-Remote_import_path_syntax">go help remote</a></code>. </p> |