From: Andrew Gerrand Date: Thu, 8 Mar 2012 05:09:49 +0000 (+1100) Subject: doc: add go command notes to the Go 1 doc X-Git-Tag: weekly.2012-03-13~102 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=70db237169c35367d6e2b0a13e3b6892849b3c35;p=gostls13.git doc: add go command notes to the Go 1 doc Fixes #2912. R=golang-dev, r CC=golang-dev https://golang.org/cl/5783048 --- diff --git a/doc/go1.html b/doc/go1.html index d09b1d398f..8d61363745 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -2087,7 +2087,25 @@ The semantic changes make it difficult for the fix tool to update automatically.

The go command

-TODO: Write this. +Go 1 introduces the go command, a tool for fetching, +building, and installing Go packages and commands. The go command +does away with makefiles, instead using Go source code to find dependencies and +determine build conditions. Most existing Go programs will no longer require +makefiles to be built. +

+ +

+See How to Write Go Code for a primer on the +go command and the go command documentation +for the full details. +

+ +

+Updating: +Projects that depend on the Go project's old makefile-based build +infrastructure (Make.pkg, Make.cmd, and so on) should +switch to using the go command for building Go code and, if +necessary, rewrite their makefiles to perform any auxiliary build tasks.

The cgo command

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 0f89e9d5ba..dd72404c33 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -1959,7 +1959,25 @@ The semantic changes make it difficult for the fix tool to update automatically.

The go command

-TODO: Write this. +Go 1 introduces the go command, a tool for fetching, +building, and installing Go packages and commands. The go command +does away with makefiles, instead using Go source code to find dependencies and +determine build conditions. Most existing Go programs will no longer require +makefiles to be built. +

+ +

+See How to Write Go Code for a primer on the +go command and the go command documentation +for the full details. +

+ +

+Updating: +Projects that depend on the Go project's old makefile-based build +infrastructure (Make.pkg, Make.cmd, and so on) should +switch to using the go command for building Go code and, if +necessary, rewrite their makefiles to perform any auxiliary build tasks.

The cgo command