From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- doc/code.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'doc/code.html') 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 go command, the standard way to fetch, build, and install Go packages and commands.

+

+This content is also available as a screencast. +

+

Code organization

@@ -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

-Run go help test and see the +Run go help test and see the testing package documentation for more detail.

@@ -476,13 +480,13 @@ import "code.google.com/p/go.example/newmath"

This convention is the easiest way to make your Go packages available for others to use. -The Go Project Dashboard -is a list of external Go projects including programs and libraries. +The Go Community Wiki +has a list of external Go projects including programs and libraries.

For more information on using remote repositories with the go command, see -go help remote. +go help remote.

-- cgit v1.2.3